Skip to content

Commit

Permalink
chore: make default event throw
Browse files Browse the repository at this point in the history
  • Loading branch information
nvtaveras committed Jul 26, 2024
1 parent df37ebf commit 8d46fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const watchdogNotifier: HttpFunction = async (
console.info("[HealthCheck]: Block", parsedEvent.block);
break;
default:
console.warn("Unknown event type:", parsedEvent.event);
throw new Error("Unknown event type", parsedEvent.event);
}
}

Expand Down

0 comments on commit 8d46fb8

Please sign in to comment.