Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

log the exception stack if available #261

Merged
merged 1 commit into from
Sep 26, 2013
Merged

log the exception stack if available #261

merged 1 commit into from
Sep 26, 2013

Conversation

morethanreal
Copy link

No description provided.

@@ -336,7 +336,7 @@
if (window.onerror)
window.onerror(ex.message);
else
console.error(ex);
console.error(ex.stack || ex);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prints less information than before. How about:

console.error(ex, ex.stack);

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@arv
Copy link
Contributor

arv commented Sep 26, 2013

LGTM

arv added a commit that referenced this pull request Sep 26, 2013
log the exception stack if available
@arv arv merged commit efaafa3 into googlearchive:master Sep 26, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants