Use io::Error::other for command failures

This commit is contained in:
Charles Cunningham
2026-02-16 13:07:22 -08:00
parent e2e83dce09
commit 37a68eeb05

View File

@@ -1991,7 +1991,7 @@ impl Config {
} else {
format!("{context} failed with status {status}: {stderr}")
};
return Err(std::io::Error::new(ErrorKind::Other, message));
return Err(std::io::Error::other(message));
}
let stdout = String::from_utf8(output.stdout).map_err(|err| {