Is there a way to display exact error message when using toast promise? #832
amitleuva1987
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using toast promise to post data to an API and in returns I expect a response or error. Below is my code
I want to display the exact error instead of just "Failed " (the API returns error). I am displaying error in the console which display nothing. is there a way to get the exact error name?
Beta Was this translation helpful? Give feedback.
All reactions