n8n/packages/cli/src/errors/credential-not-found.error.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
300 B
TypeScript
Raw Normal View History

2023-12-07 07:57:02 -08:00
import { ApplicationError } from 'n8n-workflow';
export class CredentialNotFoundError extends ApplicationError {
constructor(credentialId: string, credentialType: string) {
super(`Credential with ID "${credentialId}" does not exist for type "${credentialType}".`);
2023-12-07 07:57:02 -08:00
this.level = 'warning';
}
}