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 bb3b102 commit 0aee64f
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 @@ -1311,6 +1311,6 @@ main()
})
.catch(function (err) {
console.error('Fail:');
console.error(err.stack);
console.error(err.stack || err);
process.exit(1);
});

0 comments on commit 0aee64f

Please sign in to comment.