Skip to content

Commit ef8e9d8

Browse files
authored
Minor improvement ot rule failure message (#419)
1 parent 7a2fd8f commit ef8e9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

schemaregistry/serde/serde.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ export class ErrorAction implements RuleAction {
10131013
}
10141014

10151015
async run(ctx: RuleContext, msg: any, err: Error): Promise<void> {
1016-
throw new SerializationError(err.message)
1016+
throw new SerializationError(`rule ${ctx.rule.name} failed: ${err.message}`)
10171017
}
10181018

10191019
close(): void {

0 commit comments

Comments
 (0)