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

@@ -10,7 +10,10 @@ export class WorkflowActivationError extends ExecutionBaseError {
constructor(message: string, error: Error, node?: INode) {
super(error);
this.node = node;
this.cause = error;
this.cause = {
message: error.message,
stack: error.stack as string,
};
this.message = message;
}
}