mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
Use io::Error::other for command failures
This commit is contained in:
@@ -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| {
|
||||
|
||||
Reference in New Issue
Block a user