mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Remove excess args from routing error (#9377)
This commit is contained in:
@@ -43,7 +43,6 @@ import type {
|
|||||||
import * as NodeHelpers from './NodeHelpers';
|
import * as NodeHelpers from './NodeHelpers';
|
||||||
|
|
||||||
import type { Workflow } from './Workflow';
|
import type { Workflow } from './Workflow';
|
||||||
import type { NodeError } from './errors/abstract/node.error';
|
|
||||||
|
|
||||||
import { NodeOperationError } from './errors/node-operation.error';
|
import { NodeOperationError } from './errors/node-operation.error';
|
||||||
import { NodeApiError } from './errors/node-api.error';
|
import { NodeApiError } from './errors/node-api.error';
|
||||||
@@ -233,23 +232,9 @@ export class RoutingNode {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface AxiosError extends NodeError {
|
|
||||||
isAxiosError: boolean;
|
|
||||||
description: string | undefined;
|
|
||||||
response?: { status: number };
|
|
||||||
}
|
|
||||||
|
|
||||||
const routingError = error as AxiosError;
|
|
||||||
|
|
||||||
throw new NodeApiError(this.node, error as JsonObject, {
|
throw new NodeApiError(this.node, error as JsonObject, {
|
||||||
runIndex,
|
runIndex,
|
||||||
itemIndex: i,
|
itemIndex: i,
|
||||||
message: routingError?.message,
|
|
||||||
description: routingError?.description,
|
|
||||||
httpCode:
|
|
||||||
routingError.isAxiosError && routingError.response
|
|
||||||
? String(routingError.response?.status)
|
|
||||||
: 'none',
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user