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
No known key found for this signature in database
GPG key ID: 99CD25F39F8F8211

View file

@ -594,7 +594,10 @@ impl Miner {
Err(chain::Error::DuplicateCommitment(e)) => Err(chain::Error::DuplicateCommitment(e)) =>
Err(Error::Chain(chain::Error::DuplicateCommitment(e))), Err(Error::Chain(chain::Error::DuplicateCommitment(e))),
//Some other issue is worth a panic //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);
}
} }
} }