Skip to content

Commit 74597b6

Browse files
committed
error message
1 parent ab9e1d5 commit 74597b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/emnapi/src/core/async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function spawnThread (startArg: number, threadId?: Int32Array): number {
114114
worker.unref()
115115
}
116116
if (payload.err) {
117-
err(payload.err)
117+
err('failed to load in child thread: ' + (payload.err.message || payload.err))
118118
}
119119
} else if (type === 'thread-spawn') {
120120
spawnThread(payload.startArg, payload.threadId)

0 commit comments

Comments
 (0)