You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, especially when using .unsafePromise(), the custom domain errors can be thrown.
The function should not be used in normal application flow, but can be useful in tests.
https://mochajs.org/ test runner do not works well with throwed / rejected errors that do not inherit by Error.
This is good enough reason to change proposed error classes style in the library documentation.
Proposition of new error style:
In some cases, especially when using
.unsafePromise()
, the custom domain errors can be thrown.The function should not be used in normal application flow, but can be useful in tests.
https://mochajs.org/ test runner do not works well with throwed / rejected errors that do not inherit by
Error
.This is good enough reason to change proposed error classes style in the library documentation.
Proposition of new error style:
The text was updated successfully, but these errors were encountered: