Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Remove manually added text to the errors (#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 ascjones committed May 14, 2018
1 parent 3a5b016 commit f65ef0e
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 f65ef0e

Please sign in to comment.