TomFrost / Bristol

Insanely configurable logging for Node.js
MIT License
113 stars 19 forks source link

protect when Error does not have a "stack" #7

Closed dannyrscott closed 10 years ago

dannyrscott commented 10 years ago

While it is a fairly safe assumption that anything that evaluates instanceof Error as true will have a stack, it is possible that it won't. This PR prevents crashes in that case.

Check out https://github.com/auth0/express-jwt/pull/21 for an example

TomFrost commented 10 years ago

Thanks for the update!