diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/mod.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/mod.rs index f2bf50f2a..b8f0316ba 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/mod.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/codex_app_server/mod.rs @@ -4262,7 +4262,7 @@ impl TerminalContext { impl std::fmt::Display for RunFailure { fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Self::Failed(error) => formatter.write_str(&error.to_string()), + Self::Failed(error) => write!(formatter, "{error}"), Self::RepairRequired { detail } => formatter.write_str(detail), } }