Better logging in case of tree root setting error

This commit is contained in:
Ignotus Peverell
2017-11-18 14:30:38 -05:00
parent addaadf711
commit caee282fcc
+4 -1
View File
@@ -594,7 +594,10 @@ impl Miner {
Err(chain::Error::DuplicateCommitment(e)) =>
Err(Error::Chain(chain::Error::DuplicateCommitment(e))),
//Some other issue is worth a panic
Err(e) => panic!(e),
Err(e) => {
error!(LOGGER, "Error setting sumtree root to build a block: {:?}", e);
panic!(e);
}
}
}