Skip to content

Commit e0b006a

Browse files
committed
print error msg on notifier
1 parent f74a46d commit e0b006a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

jormungandr/src/blockchain/process.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,14 @@ async fn process_leadership_block(
461461
// Track block as new new tip block
462462
stats_counter.set_tip_block(Arc::new(block.clone()));
463463

464-
if notifier_msg_box
464+
if let Err(err) = notifier_msg_box
465465
.send(NotifierMsg::NewBlock(block.clone()))
466466
.await
467-
.is_err()
468467
{
469-
// TODO: add an error type?
470-
tracing::error!("Cannot propagate block to blockchain event notifier");
468+
tracing::error!(
469+
"Cannot propagate block to blockchain event notifier: {}",
470+
err
471+
)
471472
}
472473

473474
if let Some(mut msg_box) = explorer_msg_box {

0 commit comments

Comments
 (0)