rnewson commented on code in PR #4000:
URL: https://github.com/apache/couchdb/pull/4000#discussion_r853802040
##########
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:
I tried `err.stack` and it is undefined. But then `err.toString()` returns
`[object Object]` which isn't great either.
--
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]