Skip to content

Commit

Permalink
chore: excess notification logic
Browse files Browse the repository at this point in the history
Signed-off-by: jahabeebs <47253537+jahabeebs@users.noreply.github.com>
  • Loading branch information
jahabeebs committed Oct 1, 2024
1 parent 4662d1e commit c3f555e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/automated-dispute/src/exceptions/errorHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ export class ErrorHandler {

console.error(`Error occurred: ${error.message}`);

if (strategy.shouldNotify) {
await this.notifyError(error, context);
}

await error.executeCustomAction();

if ((strategy as EventReactError).shouldReenqueue) {
Expand All @@ -31,9 +27,4 @@ export class ErrorHandler {
}
}
}

private static async notifyError(error: CustomContractError, context: any): Promise<void> {
// TODO: notification logic
console.log(error, context);
}
}

0 comments on commit c3f555e

Please sign in to comment.