mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -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;
|
||||
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}`;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue