Skip to content

Commit 0f4bcc8

Browse files
fix: bug getting response
1 parent d0e170e commit 0f4bcc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nodeWorker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function runInWorker(input: {
3232

3333
worker.on("message", (msg) => {
3434
console.log("Worker message", msg);
35-
if (msg.errorType) {
35+
if (msg?.errorType) {
3636
reject(msg);
3737
} else {
3838
resolve(msg);

0 commit comments

Comments
 (0)