api-error-handler
api-error-handler copied to clipboard
add noStackEnvs option
Another pull as the last one's copy/paste/edit features messed up the diff. It kinda uglifies a simple module, just throwing it out there for an option. There is a beauty in specifying which envs to not show the stack for. The true/false option is much simpler for the module, I'll give you that, just that this was easier for the user of the module is all. Junks things up though.
Coverage decreased (-66.67%) to 33.33% when pulling 3728116f42a229fb2ba36284a61cb796622cec0d on dankahle:nostackenvs into df765a50c0c1de4fdbe4ce9cef2d910df4d8ba3e on expressjs:master.
We will only accept the true
/false
implementation.
yeah this implementation is over complicated. and process.env.NODE_ENV.toLowerCase()
is going to fail if NODE_ENV
doesn't happen to be defined.
No biggy, just wanted to throw it out there. Thanks for looking at it.
On Thu, Mar 26, 2015 at 1:59 PM, jongleberry [email protected] wrote:
yeah this implementation is over complicated. and process.env.NODE_ENV.toLowerCase() is going to fail if NODE_ENV doesn't happen to be defined.
— Reply to this email directly or view it on GitHub https://github.com/expressjs/api-error-handler/pull/2#issuecomment-86713659 .