Skip to content

Commit

Permalink
fix: make sure thrown error is an object (#3298)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored May 4, 2023
1 parent 48c4e8c commit a93be56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runner/src/utils/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function normalizeErrorMessage(message: string) {

export function processError(err: any, options: DiffOptions = {}) {
if (!err || typeof err !== 'object')
return err
return { message: err }
// stack is not serialized in worker communication
// we stringify it first
if (err.stack)
Expand Down

0 comments on commit a93be56

Please sign in to comment.