Print more program error info to user when using CLI (#8098)

This commit is contained in:
Jack May
2020-02-03 17:14:53 -08:00
committed by GitHub
parent 0c8cee8c4a
commit 336d5136bf
3 changed files with 14 additions and 10 deletions

View File

@@ -66,7 +66,7 @@ pub type Result<T> = result::Result<T, TransactionError>;
impl std::fmt::Display for TransactionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "transaction error")
write!(f, "TransactionError::{:?}", self)
}
}