mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-06-10 17:27:52 +02:00
3ca99194c6
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
10 lines
391 B
TypeScript
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.`,
|
|
);
|
|
}
|
|
}
|