diff --git a/scripts/task.ts b/scripts/task.ts index b40697dac358..b65b7372e926 100644 --- a/scripts/task.ts +++ b/scripts/task.ts @@ -183,7 +183,7 @@ async function writeJunitXml( let errorData = {}; if (err) { // we want to distinguish whether the error comes from the tests we are running or from arbitrary code - errorData = systemError ? { systemErr: [err.stack] } : { errors: [err] }; + errorData = systemError ? { errors: [{ message: err.stack }] } : { errors: [err] }; } const name = `${taskKey} - ${templateKey}`;