fix(mcp): align webview error handling

This commit is contained in:
Virgil 2026-04-02 17:23:49 +00:00
parent a3c39ccae7
commit 5edaa7ead1

View file

@ -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)
}
}