Skip to content

Commit

Permalink
Merge pull request #492 from gofreddo/master
Browse files Browse the repository at this point in the history
fixes errMsg.match is not a function error
  • Loading branch information
rokob authored Nov 4, 2017
2 parents bda894c + 31360eb commit c73fd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/rollbar.js/src/browser/errorParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function parse(e) {


function guessErrorClass(errMsg) {
if (!errMsg) {
if (!errMsg || !errMsg.match) {
return ['Unknown error. There was no error message to display.', ''];
}
var errClassMatch = errMsg.match(ERR_CLASS_REGEXP);
Expand Down

0 comments on commit c73fd49

Please sign in to comment.