mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-02 01:37:07 +02:00
10 lines
386 B
TypeScript
10 lines
386 B
TypeScript
import { ApplicationError } from 'n8n-workflow';
|
|
|
|
export class RedactableError extends ApplicationError {
|
|
constructor(fieldName: string, args: string) {
|
|
super(
|
|
`Failed to find "${fieldName}" property in argument "${args.toString()}". Please set the decorator \`@Redactable()\` only on \`AuditEventRelay\` methods where the argument contains a "${fieldName}" property.`,
|
|
);
|
|
}
|
|
}
|