Skip to content

Commit f4c4499

Browse files
dhritzkivbenvinegar
authored andcommitted
Don't truncate a non-existent message property on data (#647)
1 parent 9767103 commit f4c4499

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/raven.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,9 @@ Raven.prototype = {
11131113
// For now, we only want to truncate the two different messages
11141114
// but this could/should be expanded to just trim everything
11151115
var max = this._globalOptions.maxMessageLength;
1116-
data.message = truncate(data.message, max);
1116+
if (data.message) {
1117+
data.message = truncate(data.message, max);
1118+
}
11171119
if (data.exception) {
11181120
var exception = data.exception.values[0];
11191121
exception.value = truncate(exception.value, max);

0 commit comments

Comments
 (0)