pretty print trace error
This commit is contained in:
parent
14b6b389f2
commit
57b0be2a0b
@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
use std;
|
use std;
|
||||||
use ethcore;
|
use ethcore;
|
||||||
|
use ethcore::client::Error as ClientError;
|
||||||
use util::UtilError;
|
use util::UtilError;
|
||||||
use std::process::exit;
|
use std::process::exit;
|
||||||
|
|
||||||
@ -29,6 +30,7 @@ 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)),
|
||||||
_ => die!("{}: {:?}", module, e),
|
_ => die!("{}: {:?}", module, e),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user