loopbackio/strong-error-handler

Support `expose` property of http-errors

Open

#78 opened on Aug 22, 2018

 (0 comments) (0 reactions) (0 assignees)JavaScript (36 forks)auto 404
featurehelp wanted

Repository metrics

Stars
 (38 stars)
PR merge metrics
 (PR metrics pending)

Description

Description/Steps to reproduce

As brought up in strongloop/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.

Contributor guide