Some Cli polish (#8966)

automerge
This commit is contained in:
Tyera Eulberg
2020-03-19 13:03:36 -06:00
committed by GitHub
parent b84468ecd3
commit 6b9a0935c1
3 changed files with 10 additions and 9 deletions

View File

@ -2191,17 +2191,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),