From 5edaa7ead1bf1b8936a6b3c5bb7414ce834572b7 Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 2 Apr 2026 17:23:49 +0000 Subject: [PATCH] fix(mcp): align webview error handling --- pkg/mcp/tools_webview.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/mcp/tools_webview.go b/pkg/mcp/tools_webview.go index a44ea62..0aef4a1 100644 --- a/pkg/mcp/tools_webview.go +++ b/pkg/mcp/tools_webview.go @@ -6,7 +6,6 @@ import ( "bytes" "context" "encoding/base64" - "errors" "image" "image/jpeg" _ "image/png" @@ -593,7 +592,7 @@ func normalizeScreenshotData(data []byte, format string) ([]byte, string, error) } return buf.Bytes(), "jpeg", nil default: - return nil, "", errors.New("unsupported screenshot format: " + format) + return nil, "", log.E("webviewScreenshot", "unsupported screenshot format: "+format, nil) } }