Skip to content

Commit

Permalink
Remove manually added text to the errors (openethereum#8595)
Browse files Browse the repository at this point in the history
These messages were confusing for the users especially the help message.
  • Loading branch information
niklasad1 authored and VladLupashevskyi committed May 23, 2018
1 parent 30393d9 commit eacfacc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions whisper/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ impl From<String> for Error {
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
match *self {
Error::SockAddr(ref e) => write!(f, "SockAddrError: {}", e),
Error::Docopt(ref e) => write!(f, "DocoptError: {}", e),
Error::Io(ref e) => write!(f, "IoError: {}", e),
Error::JsonRpc(ref e) => write!(f, "JsonRpcError: {:?}", e),
Error::Network(ref e) => write!(f, "NetworkError: {}", e),
Error::Logger(ref e) => write!(f, "LoggerError: {}", e),
Error::SockAddr(ref e) => write!(f, "{}", e),
Error::Docopt(ref e) => write!(f, "{}", e),
Error::Io(ref e) => write!(f, "{}", e),
Error::JsonRpc(ref e) => write!(f, "{:?}", e),
Error::Network(ref e) => write!(f, "{}", e),
Error::Logger(ref e) => write!(f, "{}", e),
}
}
}
Expand Down Expand Up @@ -252,7 +252,6 @@ fn initialize_logger(log_level: String) -> Result<(), String> {
Ok(())
}


#[cfg(test)]
mod tests {
use super::execute;
Expand Down

0 comments on commit eacfacc

Please sign in to comment.