Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 11ba101

Browse files
achingbrainAlan Shaw
authored andcommitted
chore: show stack traces on uncaught errors (#2385)
`origin` can be `undefined` as well as `uncaughtException` or `unhandledRejection` It'd be nice to see the stack traces when that's the case.
1 parent 0e0d1dd commit 11ba101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/bin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// Handle any uncaught errors
77
process.once('uncaughtException', (err, origin) => {
8-
if (origin === 'uncaughtException') {
8+
if (!origin || origin === 'uncaughtException') {
99
console.error(err)
1010
process.exit(1)
1111
}

0 commit comments

Comments
 (0)