No file name, line number or stack trace during error
Opened this issue · 2 comments
Deleted user commented
Hello -
When using done(), during an error I am not getting any file name, line number or stack trace, just the error message. For example,
doSomething.then(function(result) {
console.log(result);
}).done(function(result) {
console.log(result)
}, function(err) {
console.error(err);
});
If an error occurs, I only get the following printed to the console:
[TypeError: Object prototype may only be an Object or null]
There are no other parameters sent to this function.
Is there anyway to obtain the file name, line number and stack trace of the error?
Thank you,
Andrew Schools
medikoo commented
Stack trace is accessible on error.stack
property (it's how native JavaScript API work)
Deleted user commented
Thank you.