Skip to content

Commit

Permalink
fix: also log custom error types that don't have a .stack to trace
Browse files Browse the repository at this point in the history
  • Loading branch information
coolaj86 committed May 15, 2024
1 parent 957621b commit 0ed3d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,6 @@ main()
})
.catch(function (err) {
console.error('Fail:');
console.error(err.stack);
console.error(err.stack || err);
process.exit(1);
});

0 comments on commit 0ed3d8e

Please sign in to comment.