From 9d8b36c827986f397ca0c445da67829b0177e9a3 Mon Sep 17 00:00:00 2001 From: Marcel Moura <5615598+marcelstanley@users.noreply.github.com> Date: Wed, 14 Aug 2024 16:45:37 -0300 Subject: [PATCH] chore(dispatcher): improve epoch-related logs --- offchain/dispatcher/src/drivers/context.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/offchain/dispatcher/src/drivers/context.rs b/offchain/dispatcher/src/drivers/context.rs index 04180ea5a..09ff490a2 100644 --- a/offchain/dispatcher/src/drivers/context.rs +++ b/offchain/dispatcher/src/drivers/context.rs @@ -134,7 +134,9 @@ impl Context { (Some(_), None) => true, // Consider input_epoch greater than None (None, _) => false, // None is never greater than any value }, - "Assertion failed: last_input_epoch should be greater than last_finished_epoch" + "cannot finish epoch: last_input_epoch ({:?}) is not greater than last_finished_epoch ({:?})", + self.last_input_epoch, + self.last_finished_epoch ); broker.finish_epoch(self.inputs_sent).await?;