Some Cli polish (#8966) (#8970)

automerge
This commit is contained in:
Tyera Eulberg
2020-03-19 15:11:52 -06:00
committed by GitHub
parent 93906847f9
commit 495ab631d6
3 changed files with 10 additions and 9 deletions

View File

@@ -2184,17 +2184,9 @@ where
)) = err.kind()
{
if let Some(specific_error) = E::decode_custom_error_to_enum(*code) {
error!("{}::{:?}", E::type_of(), specific_error);
eprintln!(
"Program Error ({}::{:?}): {}",
E::type_of(),
specific_error,
specific_error
);
return Err(specific_error.into());
}
}
error!("{:?}", err);
Err(err.into())
}
Ok(sig) => Ok(sig),