Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stack trace onerror when error object is available #46

Merged
merged 1 commit into from Aug 7, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Add stack trace onerror when error object is available

  • Loading branch information
apackin committed Jul 17, 2017
commit fdae32be61660582d4a3ef197f02cc0b1d00b4f6

Some generated files are not rendered by default. Learn more.

Some generated files are not rendered by default. Learn more.

@@ -42,14 +42,15 @@
if(tracker.sendConsoleErrors === true){
var _onerror = window.onerror;
//send console error messages to Loggly
window.onerror = function (msg, url, line, col){
window.onerror = function (msg, url, line, col, err){
tracker.push({
category: 'BrowserJsException',
exception: {
message: msg,
url: url,
lineno: line,
colno: col,
stack: err ? err.stack : 'n/a',
}
});

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.