From bb76c18073787566b9c5957ef1249dee099ab9e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Wed, 16 Aug 2023 16:53:17 +0200 Subject: [PATCH] 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) --- packages/cli/src/commands/executeBatch.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/cli/src/commands/executeBatch.ts b/packages/cli/src/commands/executeBatch.ts index 000a7b0152..4822747478 100644 --- a/packages/cli/src/commands/executeBatch.ts +++ b/packages/cli/src/commands/executeBatch.ts @@ -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}`; }