From 37a68eeb05858aa448d34d85cc2b6a199f1699f4 Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Mon, 16 Feb 2026 13:07:22 -0800 Subject: [PATCH] Use io::Error::other for command failures --- codex-rs/core/src/config/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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| {