pretty print trace error

This commit is contained in:
debris 2016-05-18 11:44:55 +02:00
parent 14b6b389f2
commit 57b0be2a0b

View File

@ -16,6 +16,7 @@
use std;
use ethcore;
use ethcore::client::Error as ClientError;
use util::UtilError;
use std::process::exit;
@ -29,6 +30,7 @@ pub fn die_with_error(module: &'static str, e: ethcore::error::Error) -> ! {
match e {
Error::Util(UtilError::StdIo(e)) => die_with_io_error(module, e),
Error::Client(ClientError::Trace(e)) => die_with_message(&format!("{}", e)),
_ => die!("{}: {:?}", module, e),
}
}