Skip to content

Commit 05db462

Browse files
committed
Cannot guarantee that e exists
1 parent c277ed5 commit 05db462

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export function makeNewWorker(
284284
// Create a "partial" error for the batch
285285
err = new Error(
286286
`Batch failures:\n${batchJobErrors
287-
.map((e) => (e as Error).message ?? String(e))
287+
.map((e) => (e as Error)?.message ?? String(e))
288288
.join("\n")}`,
289289
);
290290
}

0 commit comments

Comments
 (0)