Skip to content

Commit f4d757f

Browse files
committed
fix bug where errors without a message would still have colon in "Error: "
1 parent 0e9079e commit f4d757f

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)