1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 21:17:50 +03:00

ci: Fix executeBatch command to fix workflow tests (no-changelog) (#6946)

This broke because [we started returning an explicit `undefined` on
error
descriptions](https://github.com/n8n-io/n8n/pull/6841/files#diff-ea9bff15fe880ac829cc642c7e72a25d2348e331e77fc060cbe11a6effb6aeaeR430)

[Test
run](https://github.com/n8n-io/n8n/actions/runs/5879776481/job/15945235163)
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-08-16 16:53:17 +02:00 committed by GitHub
parent 40d3a295d3
commit bb76c18073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -667,10 +667,7 @@ export class ExecuteBatch extends BaseCommand {
const resultError = data.data.resultData.error;
if (resultError) {
executionResult.error =
resultError.hasOwnProperty('description') && resultError.description !== null
? resultError.description
: resultError.message;
executionResult.error = resultError.description || resultError.message;
if (data.data.resultData.lastNodeExecuted !== undefined) {
executionResult.error += ` on node ${data.data.resultData.lastNodeExecuted}`;
}