alter die_with_error to use fmt::Display, not Debug
This commit is contained in:
parent
a7d7cb9ecb
commit
3cba91bdd5
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user