Files
n8n/packages/@n8n/instance-ai/src/errors/workflow-save-conflict.error.ts
T

14 lines
433 B
TypeScript

import { OperationalError } from 'n8n-workflow';
/**
* Thrown when an Instance AI workflow save loses optimistic-concurrency:
* the workflow was modified outside the builder's last-known snapshot.
*/
export class WorkflowSaveConflictError extends OperationalError {
constructor(workflowId: string) {
super(`Workflow ${workflowId} was modified outside this conversation since the last save.`, {
level: 'warning',
});
}
}