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
Describe any alternatives/workarounds you're currently using
I am wondering about the reason why error.stack is passed to the error handler instead of entire error.
My use case is that I want to handle all script errors and get an error.message string to be show in the notification. Below example of custom error handler:
...
exportclassCustomErrorHandlerServiceextendsErrorHandler{
...
handleError(error: any): void{if(errorinstanceofError){// service consume entire "error" object to get a "message" and "stack" for own needsthis.scriptErrorHandler.handle(error);}super.handleError(error);}}
If accepted, I would be willing to submit a PR for this feature
[x] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
The text was updated successfully, but these errors were encountered:
Describe any alternatives/workarounds you're currently using
I am wondering about the reason why
error.stack
is passed to the error handler instead of entireerror
.My use case is that I want to handle all script errors and get an
error.message
string to be show in the notification. Below example of custom error handler:If accepted, I would be willing to submit a PR for this feature
[x] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
The text was updated successfully, but these errors were encountered: