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 {
|
impl fmt::Display for Error {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> {
|
||||||
match *self {
|
match *self {
|
||||||
Error::SockAddr(ref e) => write!(f, "SockAddrError: {}", e),
|
Error::SockAddr(ref e) => write!(f, "{}", e),
|
||||||
Error::Docopt(ref e) => write!(f, "DocoptError: {}", e),
|
Error::Docopt(ref e) => write!(f, "{}", e),
|
||||||
Error::Io(ref e) => write!(f, "IoError: {}", e),
|
Error::Io(ref e) => write!(f, "{}", e),
|
||||||
Error::JsonRpc(ref e) => write!(f, "JsonRpcError: {:?}", e),
|
Error::JsonRpc(ref e) => write!(f, "{:?}", e),
|
||||||
Error::Network(ref e) => write!(f, "NetworkError: {}", e),
|
Error::Network(ref e) => write!(f, "{}", e),
|
||||||
Error::Logger(ref e) => write!(f, "LoggerError: {}", e),
|
Error::Logger(ref e) => write!(f, "{}", e),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -252,7 +252,6 @@ fn initialize_logger(log_level: String) -> Result<(), String> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::execute;
|
use super::execute;
|
||||||
|
Loading…
Reference in New Issue
Block a user