Closed jaketodaro closed 8 years ago
The stack is only sent for errors caught by the $log provider (I think). Errors caught by window.onerror don't sent their stack. I think this code needs to change to log the stack from the error object.
window.onerror
window.onerror = function (msg, url, line, col, error) { logger.sendMessage({ level : 'ERROR', message: msg, url: url, line: line, col: col, stack: error && error.stack }); ...
Happy to send a PR.
@jaketodaro Thanks for pointing this out. If you want to do a PR, go ahead. We'll need to make sure this is covered in the unit tests if possible.
PR: #54
The stack is only sent for errors caught by the $log provider (I think). Errors caught by
window.onerror
don't sent their stack. I think this code needs to change to log the stack from the error object.Happy to send a PR.