refactor(core): Emit different error for issue in execution or trigger

This commit is contained in:
Jan Oberhauser
2022-06-07 15:43:47 +02:00
parent 59a59e0c5f
commit b36c290d78
3 changed files with 45 additions and 17 deletions

View File

@@ -591,13 +591,20 @@ export interface ITransferNodeTypes {
}
export interface IWorkflowErrorData {
[key: string]: IDataObject | string | number | ExecutionError;
execution: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[key: string]: any;
execution?: {
id?: string;
url?: string;
retryOf?: string;
error: ExecutionError;
lastNodeExecuted: string;
mode: WorkflowExecuteMode;
};
trigger?: {
error: ExecutionError;
mode: WorkflowExecuteMode;
};
workflow: {
id?: string;
name: string;