magic-admin-js icon indicating copy to clipboard operation
magic-admin-js copied to clipboard

Improved service error details

Open smithki opened this issue 4 years ago • 1 comments

✅ Prerequisites

  • [x] Did you perform a cursory search of open issues? Is this feature already requested elsewhere?
  • [x] Are you reporting to the correct repository (@magic-sdk/admin)?

✨ Feature Request

Improve error handling for external services. Currently, service errors manifest generically, but developers can benefit from more granular error types.

🧩 Context

None.

💻 Examples

None.

smithki avatar Apr 21 '20 14:04 smithki

To expand on this, would it be possible to expose the MagicAdminSDKError class so that we can do an instanceof check when error handling?

michaelmerrill avatar Jan 24 '21 23:01 michaelmerrill