Skip to content

Commit f00e4ec

Browse files
authored
Merge pull request #39 from cspotcode/fix-error-colon
fix bug where errors without a message would still have colon in "Error: "
2 parents 0e9079e + f4d757f commit f00e4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source-map-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ function createPrepareStackTrace(hookState) {
662662
} else {
663663
var name = error.name || 'Error';
664664
var message = error.message || '';
665-
errorString = name + ": " + message;
665+
errorString = message ? name + ": " + message : name;
666666
}
667667

668668
var state = { nextPosition: null, curPosition: null };

0 commit comments

Comments
 (0)