n8n/packages/cli/src/errors/credential-not-found.error.ts
Ali Elkhateeb 9a65549575
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
feat(API): Add missing credential endpoints (GET by ID and test) (#28519)
2026-04-20 20:56:51 +00:00

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.`,
);
}
}