diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs index 55291cfda..6c0c05a5d 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/browser_playtest/error.rs @@ -24,7 +24,7 @@ pub(crate) enum BrowserPlaytestError { impl ToolFailure for BrowserPlaytestError { fn to_user_msg(&self) -> String { match self { - Self::PlaytestFailed { cause } => cause.to_string(), + Self::PlaytestFailed { cause } => cause.clone(), Self::PlaytestNotPassed { report, .. } => format!("浏览器试玩未通过:{report}"), } }