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
{{ message }}
This repository has been archived by the owner on Aug 21, 2022. It is now read-only.
Trying to figure out how to best expose additional properties added to errors thru the http-errors package. Basically, what I'm trying to do is something like this:
Trying to figure out how to best expose additional properties added to errors thru the http-errors package. Basically, what I'm trying to do is something like this:
I don't think it's explicitly stated, but I think that these two packages are made to work together.
Would be happy with any input, maybe I'm missing something simple.
One way would be to add an option (
exposeAdditionalProperties
maybe) that simply iterates and sets the properties. I'd be happy to send a PR!The text was updated successfully, but these errors were encountered: