nickva commented on code in PR #4000:
URL: https://github.com/apache/couchdb/pull/4000#discussion_r853576861
##########
share/server/dreyfus.js:
##########
@@ -20,7 +20,7 @@ var Dreyfus = (function() {
} else if (err[0] == "fatal") {
throw(err);
}
- var message = "function raised exception " + err.toSource();
+ var message = "function raised exception " + (err.toSource ?
err.toSource() : err.toString());
Review Comment:
Saw a few other cases use `err.stack`. It might not make much of a
difference here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]