fn check_target_not_found_err(err: anyhow::Error, target: &str) -> anyhow::Error {
    let io_err: &std::io::Error = match err.downcast_ref() {
        Some(io_err) => io_err,
        None => return err,
    };
    match io_err.kind() {
        std::io::ErrorKind::NotFound => err.context(format!("{} not found", target)),
        _ => err,
    }
}
/// Handle invocation errors indicating that the target binary was not found, simply wrapping the
/// error in additional context stating more clearly that the target was not found.
Handle invocation errors indicating that the target binary was not found, simply wrapping the
error in additional context stating more clearly that the target was not found.
Handle invocation errors indicating that the target binary was not found simply wrapping the error in additional context stating more clearly that the target was not found .
fn check_target_not_found_err(err: anyhow::Error, target: &str) -> anyhow::Error {
    let io_err: &std::io::Error = match err.downcast_ref() {
        Some(io_err) => io_err,
        None => return err,
    };
    match io_err.kind() {
        std::io::ErrorKind::NotFound => err.context(format!("{} not found", target)),
        _ => err,
    }
}
fn check_target_not_found_err ( err : anyhow :: Error , target : & str ) -> anyhow :: Error { let io_err : & std :: io :: Error = match err . downcast_ref ( ) { Some ( io_err ) => io_err , None => return err , } ; match io_err . kind ( ) { std :: io :: ErrorKind :: NotFound => err . context ( format ! ( " " target ) ) , _ => err , } }
Handle invocation errors indicating that the target binary was not found, simply wrapping the
error in additional context stating more clearly that the target was not found.
Handle invocation errors indicating that the target binary was not found simply wrapping the error in additional context stating more clearly that the target was not found .
err
anyhow::Error
target
&str
err
anyhow::Error
target
&str