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
I use an API that returns details with errors
like below { props:{ message:' Something bad occured ', code:1023 } }
and I also use Typescript and when I wrap my API calls to try/catch block
only returns an Error() object which only has message(if 400 be like: Request failed with 400 or something)
is there anyway I can access the response in try/catch ?
The text was updated successfully, but these errors were encountered:
I use an API that returns details with errors
like below
{ props:{ message:' Something bad occured ', code:1023 } }
and I also use Typescript and when I wrap my API calls to try/catch block
only returns an Error() object which only has message(if 400 be like: Request failed with 400 or something)
is there anyway I can access the response in try/catch ?
The text was updated successfully, but these errors were encountered: