mirror of
https://github.com/n8n-io/n8n
synced 2026-04-21 15:47:20 +00:00
Some checks are pending
Build: Benchmark Image / build (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
Util: Sync API Docs / sync-public-api (push) Waiting to run
11 lines
350 B
TypeScript
11 lines
350 B
TypeScript
import { UserError } from 'n8n-workflow';
|
|
|
|
export class CredentialNotFoundError extends UserError {
|
|
constructor(credentialId: string, credentialType?: string) {
|
|
super(
|
|
credentialType
|
|
? `Credential with ID "${credentialId}" does not exist for type "${credentialType}".`
|
|
: `Credential with ID "${credentialId}" was not found.`,
|
|
);
|
|
}
|
|
}
|