diff --git a/packages/runner/src/utils/error.ts b/packages/runner/src/utils/error.ts index 0f88f277574..d52e98f26d2 100644 --- a/packages/runner/src/utils/error.ts +++ b/packages/runner/src/utils/error.ts @@ -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)