Skip to content

Commit 9de44d9

Browse files
committed
1.1.15
1 parent bc060ae commit 9de44d9

File tree

6 files changed

+18
-10
lines changed

6 files changed

+18
-10
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven-js",
3-
"version": "1.1.14",
3+
"version": "1.1.15",
44
"dependencies": {},
55
"main": "dist/raven.js"
66
}

dist/raven.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! Raven.js 1.1.14 (737cda4) | github.com/getsentry/raven-js */
1+
/*! Raven.js 1.1.15 (bc060ae) | github.com/getsentry/raven-js */
22

33
/*
44
* Includes TraceKit
@@ -1116,7 +1116,7 @@ var _Raven = window.Raven,
11161116
* @this {Raven}
11171117
*/
11181118
var Raven = {
1119-
VERSION: '1.1.14',
1119+
VERSION: '1.1.15',
11201120

11211121
/*
11221122
* Allow multiple versions of Raven to be installed.
@@ -1305,8 +1305,8 @@ var Raven = {
13051305
* @return {Raven}
13061306
*/
13071307
captureException: function(ex, options) {
1308-
// If a string is passed through, recall as a message
1309-
if (isString(ex)) return Raven.captureMessage(ex, options);
1308+
// If not an Error is passed through, recall as a message instead
1309+
if (!(ex instanceof Error)) return Raven.captureMessage(ex, options);
13101310

13111311
// Store the raw exception object for potential debugging and introspection
13121312
lastCapturedException = ex;
@@ -1338,7 +1338,7 @@ var Raven = {
13381338
// Fire away!
13391339
send(
13401340
objectMerge({
1341-
message: msg
1341+
message: msg + '' // Make sure it's actually a string
13421342
}, options)
13431343
);
13441344

@@ -1589,6 +1589,10 @@ function extractContextFromFrame(frame) {
15891589
function processException(type, message, fileurl, lineno, frames, options) {
15901590
var stacktrace, label, i;
15911591

1592+
// In some instances message is not actually a string, no idea why,
1593+
// so we want to always coerce it to one.
1594+
message += '';
1595+
15921596
// Sometimes an exception is getting logged in Sentry as
15931597
// <no message value>
15941598
// This can only mean that the message was falsey since this value

dist/raven.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/raven.min.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/changelog/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.1.15
5+
~~~~~~
6+
* Fix issues if a non-string were passed to `Raven.captureMessage` and non-Error objects were passed to `Raven.captureException`.
7+
48
1.1.14
59
~~~~~~
610
* Only filter normal Error objects without a message, not all of them. Turns out, people throw errors like this. Ahem, Underscore.js. See: https://github.com/jashkenas/underscore/pull/1589/files

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "raven",
3-
"version": "1.1.14",
3+
"version": "1.1.15",
44
"scripts": {
55
"test": "./node_modules/.bin/grunt test"
66
},

0 commit comments

Comments
 (0)