Files
n8n-enterprise-unlocked/packages/cli/src/errors/redactable.error.ts
T
2025-02-27 09:30:55 +02:00

10 lines
391 B
TypeScript

import { UnexpectedError } from 'n8n-workflow';
export class RedactableError extends UnexpectedError {
constructor(fieldName: string, args: string) {
super(
`Failed to find "${fieldName}" property in argument "${args.toString()}". Please set the decorator \`@Redactable()\` only on \`LogStreamingEventRelay\` methods where the argument contains a "${fieldName}" property.`,
);
}
}