mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
when the error callback only needs to print the exception. Replace unsafe references to `err.stack` with `err && err.stack || err`. This avoids throwing a secondary exception if the original exception in `err` isn't an object (`throw(null)` and `throw(undefined)` are legal in JavaScript), and also displays the error object if the stack trace wasn't included.