Skip to content

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

Merged
merged 4 commits into from
Jun 30, 2016

Conversation

benvinegar
Copy link
Contributor

@benvinegar benvinegar commented Jun 28, 2016

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


Raven._processException(undefined, '\'foo\' is undefined', 'http://example.com', 10); // IE9 ReferenceError
assert.deepEqual(Raven._send.lastCall.args[0].message, '\'foo\' is undefined');
});
Copy link
Contributor Author

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,
Copy link
Contributor

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?

Copy link
Contributor

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

Copy link
Contributor Author

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)

Copy link
Contributor Author

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.

@mattrobenolt
Copy link
Contributor

🆒

@benvinegar benvinegar merged commit fbf1d1b into master Jun 30, 2016
@benvinegar benvinegar deleted the no-dupe-msg branch June 30, 2016 00:05
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.

3 participants