Skip to content

Commit

Permalink
feat: log original error name if decoding fails
Browse files Browse the repository at this point in the history
  • Loading branch information
0xyaco committed Oct 31, 2024
1 parent 12f29ee commit 6431356
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/automated-dispute/src/services/eboActor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ export class EboActor {
} catch (err) {
if (err instanceof ProphetDecodingError) {
// Skipping malformed entities
this.logger.warn(err.message);
this.logger.warn(
stringify({
reason: err.err?.name,
message: err.message,
}),
);

continue;
} else {
Expand Down

0 comments on commit 6431356

Please sign in to comment.