mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat(core): Run Error Workflow also on trigger activation error (#3470)
* feat(core): Run Error Workflow also when workflow gets deactivated
or could not be activated on startup because of error
R#
* ⚡ Add missing file
This commit is contained in:
16
packages/workflow/src/WorkflowActivationError.ts
Normal file
16
packages/workflow/src/WorkflowActivationError.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// eslint-disable-next-line import/no-cycle
|
||||
import { ExecutionBaseError, INode } from '.';
|
||||
|
||||
/**
|
||||
* Class for instantiating an workflow activation error
|
||||
*/
|
||||
export class WorkflowActivationError extends ExecutionBaseError {
|
||||
node: INode | undefined;
|
||||
|
||||
constructor(message: string, error: Error, node?: INode) {
|
||||
super(error);
|
||||
this.node = node;
|
||||
this.cause = error;
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user