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
When a error has been created with new ResponseError("message"), the message is removed in the stack trace, and only accessible via .message compared to normally when a Error is .toString()ed
Steps to reproduce
console.error('Something broke', error); << where error is of the type ResponseError
console.error('Something broke', new ResponseError('some database error'));
^^ above returns
Something broke ResponseError
at <anonymous>:1:34
Expected behaviour
Something broke ResponseError: some database error
at <anonymous>:1:34
Describe the bug
When a error has been created with
new ResponseError("message")
, the message is removed in the stack trace, and only accessible via.message
compared to normally when a Error is.toString()
edSteps to reproduce
console.error('Something broke', error);
<< where error is of the typeResponseError
console.error('Something broke', new ResponseError('some database error'));
^^ above returns
Expected behaviour
SurrealDB version
2.0.0-alpha.2 for linux on x86_64
SurrealDB.js version
1.0.0-beta.9
Contact Details
[email protected]
Is there an existing issue for this?
Code of Conduct
The text was updated successfully, but these errors were encountered: