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

Don't include error name as part of msg if it is falsy #538

Merged
merged 1 commit into from
Mar 22, 2016

Conversation

benvinegar
Copy link
Contributor

IE8 and IE9 (and surely other browsers) produce error strings that don't have an error name (e.g. ReferenceError). We end up producing strings like below, which end up in the Sentry UI:

undefined: 'foo' is not defined // IE9
undefined: Object expected // IE8

Screenshot:

image

This patch omits error name if it is falsy, so that the messages above now become:

'foo' is not defined // IE9
Object expected // IE8

benvinegar added a commit that referenced this pull request Mar 22, 2016
Don't include error name as part of msg if it is falsy
@benvinegar benvinegar merged commit f34d0ea into master Mar 22, 2016
@benvinegar benvinegar deleted the no-undefined-msg branch March 22, 2016 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant