Skip to content
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

Support expose property of http-errors #78

Open
shimks opened this issue Aug 22, 2018 · 0 comments
Open

Support expose property of http-errors #78

shimks opened this issue Aug 22, 2018 · 0 comments

Comments

@shimks
Copy link
Contributor

shimks commented Aug 22, 2018

Description/Steps to reproduce

As brought up in loopbackio/loopback-next#1598, strong-error-handler should be able to support expose property set in errors thrown with HttpError from http-errors module.

Its interaction with the debug setting in strong-error-handler is yet to be decided.

getsnoopy added a commit to getsnoopy/strong-error-handler that referenced this issue Jul 18, 2022
This commit adds support for the "expose" property used by the
http-errors module, which allows developers to explicitly signal the
error message to be passed to the HTTP response for errors. This is
useful for certain errors (e.g., those with status code >=500) where the
original error message is otherwise suppressed by default.

Resolves: loopbackio#78
Signed-off-by: getsnoopy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant