pub fn unravel_errors(message: &str, error: &Error) {
    if !message.is_empty() {
        self::error(message);
    }
    self::error(&format!("Error: {}", error));
    let mut cause = error.source();
    while let Some(e) = cause {
        self::error(&format!("Reason: {}", e));
        cause = e.source();
    }
}
/// Display an error message and the actual error(s)
Display an error message and the actual error(s)
Display an error message and the actual error ( s )
pub fn unravel_errors(message: &str, error: &Error) {
    if !message.is_empty() {
        self::error(message);
    }
    self::error(&format!("Error: {}", error));
    let mut cause = error.source();
    while let Some(e) = cause {
        self::error(&format!("Reason: {}", e));
        cause = e.source();
    }
}
pub fn unravel_errors ( message : & str , error : & Error ) { if ! message . is_empty ( ) { self :: error ( message ) ; } self :: error ( & format ! ( " " error ) ) ; let mut cause = error . source ( ) ; while let Some ( e ) = cause { self :: error ( & format ! ( " " e ) ) ; cause = e . source ( ) ; } }
Display an error message and the actual error(s)
Display an error message and the actual error ( s )
message
&str
error
&Error
message
&str
error
&Error