diff --git a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/remove_background/error.rs b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/remove_background/error.rs index a04887152..1c903e51a 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/agent/tool/remove_background/error.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/agent/tool/remove_background/error.rs @@ -94,13 +94,13 @@ impl ToolFailure for RemoveBackgroundError { format!("抠图失败:assetName 必须是字符串,当前是「{got}」。") } Self::BackgroundModeNotText { got } => { - format!("抠图失败:backgroundMode 必须是 complex 或 flat,当前是「{got}」。") + format!("抠图失败:backgroundMode 必须是字符串,当前是「{got}」。") } Self::BackgroundModeUnsupported { got } => { format!("抠图失败:backgroundMode「{got}」不受支持,只能是 complex 或 flat。") } Self::ScreenColorNotText { got } => { - format!("抠图失败:screenColor 必须是 auto 或 #RRGGBB,当前是「{got}」。") + format!("抠图失败:screenColor 必须是字符串,当前是「{got}」。") } Self::ScreenColorMalformed { got } => { format!("抠图失败:screenColor「{got}」不是受支持的取值,必须是 auto 或 #RRGGBB。")