Skip to content

Commit 0aee64f

Browse files
committed
fix: also log custom error types that don't have a .stack to trace
1 parent bb3b102 commit 0aee64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,6 @@ main()
13111311
})
13121312
.catch(function (err) {
13131313
console.error('Fail:');
1314-
console.error(err.stack);
1314+
console.error(err.stack || err);
13151315
process.exit(1);
13161316
});

0 commit comments

Comments
 (0)