-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
caddyhttp: Set http.error.message
to the HandlerError message
#4971
Conversation
Thanks! Just to make sure I understand, does this mean that |
For example:
Will write out:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah that's pretty good. LGTM! Thanks for the patch. Not sure how I forgot this... heh.
http.error.message
with the HandlerError messagehttp.error.message
to the HandlerError message
Yeah it's kinda wild, we've always documented it but it never worked 🤣 |
Thanks for implementing this, but there seems to be a regression. When |
Please provide your full config and a reproduce case. I don't want to make assumptions like we had to do in the previous thread. I find it very unlikely that this PR would have caused any kind of regression. It only sets a variable, that's it. |
Alright yep I see it. Making a followup PR. |
Followup to #4971, need to check that there actually is a wrapped error before trying to grab its message.
Fix #4969