Open dankahle opened 9 years ago
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 notifications@github.com 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 .
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.