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 I try to handle the error message to show on the window dialog,I found that the error message was wrap in the object and that I could not get the message field.
Why don't we only handle the error message on the catch callback method in backend and not an object like:
method().then().catch(error=>{console.log(error)// output: some custom message})
This like the given example on the docs,but the error always an object and output like:Error: {"message":"some msg","cause":{},"kind":"RuntimeError"}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
when I try to handle the error message to show on the window dialog,I found that the error message was wrap in the object and that I could not get the message field.
Why don't we only handle the error message on the catch callback method in backend and not an object like:
This like the given example on the docs,but the error always an object and output like:
Error: {"message":"some msg","cause":{},"kind":"RuntimeError"}Beta Was this translation helpful? Give feedback.
All reactions