File size: 391 Bytes
aec3094 | 1 2 3 4 5 6 7 8 9 10 | 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.`,
);
}
}
|