Skip to content

Commit 2c3d5c4

Browse files
authored
Report original error, too, when reporting double worker error (#235)
1 parent 5a3460e commit 2c3d5c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/worker/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ function postUncaughtErrorMessage(error: Error) {
100100
} catch (subError) {
101101
// tslint:disable-next-line no-console
102102
console.error(
103-
"Not reporting uncaught error back to master thread as it occured while " +
104-
"reporting an uncaught error already. Latest error:",
105-
subError
103+
"Not reporting uncaught error back to master thread as it " +
104+
"occured while reporting an uncaught error already." +
105+
"\nLatest error:", subError,
106+
"\nOriginal error:", error
106107
)
107108
}
108109
}

0 commit comments

Comments
 (0)