Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix bug where errors without a message would still have colon in "Err…
…or: "
  • Loading branch information
cspotcode committed May 2, 2022
commit f4d757f3bd47defa21323b13e121fa12d27cb380
2 changes: 1 addition & 1 deletion source-map-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ function createPrepareStackTrace(hookState) {
} else {
var name = error.name || 'Error';
var message = error.message || '';
errorString = name + ": " + message;
errorString = message ? name + ": " + message : name;
}

var state = { nextPosition: null, curPosition: null };
Expand Down