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
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]>
Description/Steps to reproduce
As brought up in loopbackio/loopback-next#1598,
strong-error-handler
should be able to supportexpose
property set in errors thrown withHttpError
fromhttp-errors
module.Its interaction with the
debug
setting in strong-error-handler is yet to be decided.The text was updated successfully, but these errors were encountered: