fix: resolve TS2339 error in ipc.ts - cast result.error to String

This commit is contained in:
thzxx
2026-04-16 10:46:56 +08:00
parent 25ffd22639
commit 2b8f53bc81
+1 -1
View File
@@ -167,7 +167,7 @@ export function setupIPC(): void {
if (result.success) { if (result.success) {
sendLog('success', `🔧 ${toolName}`, summarizeResult(toolName, result)); sendLog('success', `🔧 ${toolName}`, summarizeResult(toolName, result));
} else { } else {
sendLog('warn', `🔧 ${toolName}`, (result.error || '未知错误').slice(0, 200)); sendLog('warn', `🔧 ${toolName}`, String(result.error || '未知错误').slice(0, 200));
} }
return result; return result;
} catch (err) { } catch (err) {