Adding error handling for astro-typed-api #84
amanketebo
started this conversation in
Ideas
Replies: 1 comment
-
I'm guessing the expectation of a user would be that the error data automatically appears on the client side, so they would throw errors. I think the error messages for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a previous issue, we talked about adding a error handling api so that it's obvious that error thrown in the fetch method will be handled in another error handler method
@lilnasy You had mentioned something like:
I think this is a good idea and also maybe throwErrorToClient can be optional too incase the user doesn't want to handle it in any special way. But by making it optional then people might not realize that functionality is there? What do you think @lilnasy?
Beta Was this translation helpful? Give feedback.
All reactions