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; const resultError = data.data.resultData.error;
if (resultError) { if (resultError) {
executionResult.error = executionResult.error = resultError.description || resultError.message;
resultError.hasOwnProperty('description') && resultError.description !== null
? resultError.description
: resultError.message;
if (data.data.resultData.lastNodeExecuted !== undefined) { if (data.data.resultData.lastNodeExecuted !== undefined) {
executionResult.error += ` on node ${data.data.resultData.lastNodeExecuted}`; executionResult.error += ` on node ${data.data.resultData.lastNodeExecuted}`;
} }