Files
Jean Claveau cc29b626ab Add message property to sdk error (#25474)
* feat(sdk): add a message entry on api error to be catchable normally

* feat(sdk): FetchInterface MUST return unknown to support alternative fetch implementations

* feat(sdk): empty default error message to match js Error spec

* Improve DirectusError type

* add tests

* account for non object reason in message

* add non object reason test

* simplify error message check

* add changeset

* Error result is not necessarily a directus error

* Remove unnecessary errors existence check

---------

Co-authored-by: daedalus <44623501+ComfortablyCoding@users.noreply.github.com>
2025-07-21 09:13:19 -04:00
..