-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Don't additionally pass msg if exception interface set #632
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
Conversation
|
||
Raven._processException(undefined, '\'foo\' is undefined', 'http://example.com', 10); // IE9 ReferenceError | ||
assert.deepEqual(Raven._send.lastCall.args[0].message, '\'foo\' is undefined'); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this because I felt this test had no application any longer now that we were not additionally storing message
for exceptions.
// Fire away! | ||
this._send( | ||
objectMerge({ | ||
message: msg + '' // Make sure it's actually a string | ||
message: msg, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this change? And also introduced a trailing comma. I think that's still a bad thing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mattrobenolt AFAIK for IE 8 it is, yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just moved it up higher (and kept the comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mmm, in hindsight, I probably did this because in some version I did something else with msg
so I wanted the conversion higher. I'll just restore this code.
🆒 |
This removes the redundant "message" interface inside of the Sentry UI if an exception is passed. The message interface will appear if captured via
captureMessage
/ no exception.cc @mattrobenolt @dcramer