Doesn't return error message #2000
Unanswered
kelvin-zhao
asked this question in
Q&A
Replies: 2 comments 3 replies
-
My guess is that some code before that line is throwing the error, so by default |
Beta Was this translation helpful? Give feedback.
0 replies
-
The way I'm doing my code block is as follows, does the throw error in my try block doesn't hit the catch but sends the error back instantly?
My console.log was hit and I did get the message in my logs. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I'm using
return c.text( '${ err.message }', 500 )
to return an error message, but I don't see the message being returned, just a default internal error.
I did a console.log on my api, it does have an error message though.
How should I properly send the message back?
Beta Was this translation helpful? Give feedback.
All reactions