From 21efcbb63b41e75131308fcc315160ea4456aa2a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 15 Mar 2026 07:48:50 +0000 Subject: [PATCH] Address code review feedback on empty catch blocks Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- core/brain-wake/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/brain-wake/index.js b/core/brain-wake/index.js index d98ed8f8..732a5573 100644 --- a/core/brain-wake/index.js +++ b/core/brain-wake/index.js @@ -186,8 +186,8 @@ async function discoverModels(backend) { const json = JSON.parse(res.body); return json.data || []; } - } catch { - // 模型探测失败,使用预定义列表 + } catch (err) { + console.log(`[WAKE] ⚠️ ${backend.name} 模型探测失败: ${err.message}`); } return backend.models.map(id => ({ id }));