From 2b8f53bc8188aec6a72ea9eec8e3f23b36ee177b Mon Sep 17 00:00:00 2001 From: thzxx Date: Thu, 16 Apr 2026 10:46:44 +0800 Subject: [PATCH] fix: resolve TS2339 error in ipc.ts - cast result.error to String --- src/main/ipc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ipc.ts b/src/main/ipc.ts index 34c267c..d7184e4 100644 --- a/src/main/ipc.ts +++ b/src/main/ipc.ts @@ -167,7 +167,7 @@ export function setupIPC(): void { if (result.success) { sendLog('success', `🔧 ${toolName} ✓`, summarizeResult(toolName, result)); } else { - sendLog('warn', `🔧 ${toolName} ✗`, (result.error || '未知错误').slice(0, 200)); + sendLog('warn', `🔧 ${toolName} ✗`, String(result.error || '未知错误').slice(0, 200)); } return result; } catch (err) {