diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/delivery_status/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/delivery_status/error.rs index 3aafbe1e1..c6b0f7266 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/delivery_status/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/delivery_status/error.rs @@ -26,7 +26,7 @@ impl ToolFailure for DeliveryStatusError { match self { Self::ArgumentsNotAccepted => "交付状态工具不接受参数。".to_string(), Self::Gate(rejection) => rejection.to_user_msg(), - Self::StatusUnavailable { cause } => cause.to_string(), + Self::StatusUnavailable { cause } => format!("交付状态读取失败:{cause}"), } } diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/register_delivery_contract/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/register_delivery_contract/error.rs index 53a3b243e..7e875e207 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/register_delivery_contract/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/register_delivery_contract/error.rs @@ -24,7 +24,7 @@ impl ToolFailure for RegisterDeliveryContractError { fn to_user_msg(&self) -> String { match self { Self::Gate(rejection) => rejection.to_user_msg(), - Self::ContractRejected { cause } => cause.to_string(), + Self::ContractRejected { cause } => format!("登记交付合同失败:{cause}"), } } diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/update_plan/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/update_plan/error.rs index 0a6153966..17c606aec 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/update_plan/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/update_plan/error.rs @@ -23,7 +23,7 @@ impl ToolFailure for UpdatePlanError { fn to_user_msg(&self) -> String { match self { Self::Gate(rejection) => rejection.to_user_msg(), - Self::PlanRejected { cause } => cause.to_string(), + Self::PlanRejected { cause } => format!("更新计划失败:{cause}"), } }