Skip to content

Commit caee282

Browse files
committed
Better logging in case of tree root setting error
1 parent addaadf commit caee282

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: grin/src/miner.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,10 @@ impl Miner {
594594
Err(chain::Error::DuplicateCommitment(e)) =>
595595
Err(Error::Chain(chain::Error::DuplicateCommitment(e))),
596596
//Some other issue is worth a panic
597-
Err(e) => panic!(e),
597+
Err(e) => {
598+
error!(LOGGER, "Error setting sumtree root to build a block: {:?}", e);
599+
panic!(e);
600+
}
598601
}
599602
}
600603

0 commit comments

Comments
 (0)