refactor: 优化错误提示信息

- 将"当前访问人数过多"改为更通用的"处理用户消息失败"
   - 移除错误消息中的  emoji,保持简洁
This commit is contained in:
Roe-xin
2026-03-09 15:55:51 +08:00
parent 97b8e8aa7d
commit 531d140b99

View File

@ -201,10 +201,10 @@ export async function handleUserMessage(
);
return;
} catch (error) {
console.error("当前访问人数过多,请稍后重试:", error);
console.error("处理用户消息失败:", error);
panel.webview.postMessage({
command: "updateStatus",
text: "当前访问人数过多,请稍后重试",
text: "处理用户消息失败,请稍后重试",
type: "error",
});
// 恢复输入状态
@ -378,7 +378,7 @@ async function handleUserMessageWithBackend(
});
panel.webview.postMessage({
command: "receiveMessage",
text: `错误: ${message}`,
text: `错误: ${message}`,
});
// 恢复输入状态
panel.webview.postMessage({