api-error-handler icon indicating copy to clipboard operation
api-error-handler copied to clipboard

Add exposeAdditionalProperties option

Open LinusU opened this issue 6 years ago • 4 comments

see #7 for motivation

LinusU avatar Aug 29 '18 13:08 LinusU

Coverage Status

Coverage remained the same at 100.0% when pulling fe4ea9a12acff4f0a9f667f8db02f3ac812a1819 on LinusU:expose-additional-properties into df765a50c0c1de4fdbe4ce9cef2d910df4d8ba3e on expressjs:master.

coveralls avatar Aug 29 '18 14:08 coveralls

+1

kilhage avatar Sep 24 '18 13:09 kilhage

ping @jonathanong, what do you think about this? ☺️

LinusU avatar Nov 21 '18 15:11 LinusU

I think it would be useful to specify either a truthy/falsy value or an array of properties to whitelist.

Some packages add additional error properties that you might not want to propagate to the user.

gillesdemey avatar Dec 20 '18 15:12 gillesdemey