Skip to content

Commit a93be56

Browse files
authoredMay 4, 2023
fix: make sure thrown error is an object (#3298)
1 parent 48c4e8c commit a93be56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/runner/src/utils/error.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function normalizeErrorMessage(message: string) {
8989

9090
export function processError(err: any, options: DiffOptions = {}) {
9191
if (!err || typeof err !== 'object')
92-
return err
92+
return { message: err }
9393
// stack is not serialized in worker communication
9494
// we stringify it first
9595
if (err.stack)

0 commit comments

Comments
 (0)
Please sign in to comment.