Print more program error info to user when using CLI (#8098)
This commit is contained in:
@ -1765,6 +1765,12 @@ where
|
||||
{
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user