mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-02 01:37:07 +02:00
26 lines
567 B
TypeScript
26 lines
567 B
TypeScript
import type { INode } from '../Interfaces';
|
|
import { ExecutionBaseError } from './abstract/execution-base.error';
|
|
|
|
export class CredentialAccessError extends ExecutionBaseError {
|
|
override readonly description =
|
|
'Please recreate the credential or ask its owner to share it with you.';
|
|
|
|
override readonly level = 'warning';
|
|
|
|
constructor(
|
|
readonly node: INode,
|
|
credentialId: string,
|
|
workflowId: string,
|
|
) {
|
|
super('Node has no access to credential', {
|
|
tags: {
|
|
nodeType: node.type,
|
|
},
|
|
extra: {
|
|
credentialId,
|
|
workflowId,
|
|
},
|
|
});
|
|
}
|
|
}
|