diff --git a/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx b/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx index ae94b1afa..c3ef169d9 100644 --- a/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx +++ b/apps/ai-game-creator-shell/src/components/game-distribution/GameDistributionPublishPanel.tsx @@ -395,9 +395,10 @@ export function GameDistributionPublishPanel({ if (publicationRequestId !== publicationRequestRef.current) return; setPublicationState('unavailable'); setPublicationMessage( - recoveryError instanceof Error - ? recoveryError.message - : '无法确认该项目的线上发布状态:未提供具体错误正文,请稍后重试', + `无法确认该项目的线上发布状态:${visibleClientErrorMessage( + recoveryError, + '未提供具体错误正文', + )},请稍后重试`, ); }); diff --git a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx index 24827fc80..bf5d27674 100644 --- a/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx +++ b/apps/ai-game-creator-shell/src/features/runtime-config/RuntimeConfigDialog.tsx @@ -264,7 +264,11 @@ export function RuntimeConfigDialog({ ); useEffect(() => { - void setAgcPluginProjectPath(projectPath ?? null).catch(() => undefined); + void setAgcPluginProjectPath(projectPath ?? null).catch((error) => { + setAgcPluginsStatus( + `项目插件路径设置失败:${visibleClientErrorMessage(error)}`, + ); + }); }, [projectPath]); useEffect(() => {