internal error

This commit is contained in:
Simon Knott 2024-12-30 11:55:31 +01:00
parent 64305aec3b
commit ba69c19baa
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -362,8 +362,13 @@ class JobDispatcher {
body: params.body !== undefined ? Buffer.from(params.body, 'base64') : undefined body: params.body !== undefined ? Buffer.from(params.body, 'base64') : undefined
}; };
data.result.attachments.push(attachment); data.result.attachments.push(attachment);
if (params.stepId) if (params.stepId) {
data.steps.get(params.stepId)!.attachments.push(attachment); const step = data.steps.get(params.stepId);
if (step)
step.attachments.push(attachment);
else
this._reporter.onStdErr?.('Internal error: step id not found: ' + params.stepId);
}
} }
private _failTestWithErrors(test: TestCase, errors: TestError[]) { private _failTestWithErrors(test: TestCase, errors: TestError[]) {