From 57b0be2a0bae2db27fdeee4c8c4968192e1550f4 Mon Sep 17 00:00:00 2001 From: debris Date: Wed, 18 May 2016 11:44:55 +0200 Subject: [PATCH] pretty print trace error --- parity/die.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parity/die.rs b/parity/die.rs index 4ae6794a4..7d8c87b89 100644 --- a/parity/die.rs +++ b/parity/die.rs @@ -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), } }