mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08: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:
parent
40d3a295d3
commit
bb76c18073
|
@ -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}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue