diff --git a/codex-rs/core/src/config/mod.rs b/codex-rs/core/src/config/mod.rs index 1a0174e7af..d481de92c3 100644 --- a/codex-rs/core/src/config/mod.rs +++ b/codex-rs/core/src/config/mod.rs @@ -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| {