refactor(core): Decouple event bus from internal hooks (no-changelog) (#9724)
This commit is contained in:
9
packages/cli/src/errors/redactable.error.ts
Normal file
9
packages/cli/src/errors/redactable.error.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
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.`,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user