Remove manually added text to the errors (#8595)
These messages were confusing for the users especially the help message.
This commit is contained in:
parent
272ebc1ef7
commit
1b95af18ff
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -252,7 +252,6 @@ fn initialize_logger(log_level: String) -> Result<(), String> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::execute;
|
||||
|
Loading…
Reference in New Issue
Block a user