alter die_with_error to use fmt::Display, not Debug

This commit is contained in:
Robert Habermeier 2016-05-20 18:13:30 -04:00
parent a7d7cb9ecb
commit 3cba91bdd5

View File

@ -31,7 +31,10 @@ pub fn die_with_error(module: &'static str, e: ethcore::error::Error) -> ! {
match e { match e {
Error::Util(UtilError::StdIo(e)) => die_with_io_error(module, e), Error::Util(UtilError::StdIo(e)) => die_with_io_error(module, e),
Error::Client(ClientError::Trace(e)) => die_with_message(&format!("{}", e)), Error::Client(ClientError::Trace(e)) => die_with_message(&format!("{}", e)),
_ => die!("{}: {:?}", module, e), _ => {
trace!(target: module, "{:?}", e);
die!("{}: {}", module, e);
}
} }
} }