Skip to content

Commit 8b7613c

Browse files
staletvoxpelli
andauthored
Update lib/cli/run.js
Do not change the original functionality. Co-authored-by: Pelle Wessman <[email protected]>
1 parent d9e64ad commit 8b7613c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/run.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ exports.handler = async function (argv) {
372372
if (!err) {
373373
console.error('\n Undefined error:', err);
374374
} else {
375-
console.error('\n' + (err.stack || `Error: ${err.message}`), err);
375+
console.error('\n' + (err.stack || `Error: ${err.message || err}`));
376376
}
377377

378378
process.exit(1);

0 commit comments

Comments
 (0)