From 5ad7cf58a2cecfdeb6c8d3aaaf6fbb856565d80d Mon Sep 17 00:00:00 2001 From: Pavel Shliak Date: Sat, 23 May 2026 01:28:42 +0400 Subject: [PATCH] LibWeb: Fix socksProxy validation error messages --- Libraries/LibWeb/WebDriver/Proxy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibWeb/WebDriver/Proxy.cpp b/Libraries/LibWeb/WebDriver/Proxy.cpp index 83655ef407..b48c432b61 100644 --- a/Libraries/LibWeb/WebDriver/Proxy.cpp +++ b/Libraries/LibWeb/WebDriver/Proxy.cpp @@ -90,9 +90,9 @@ static ErrorOr validate_proxy_item(StringView key, JsonValue const& if (key == "socksProxy"sv) { if (!value.is_string()) - return Error::from_code(ErrorCode::InvalidArgument, "Proxy configuration item 'proxyAutoconfigUrl' must be a string"sv); + return Error::from_code(ErrorCode::InvalidArgument, "Proxy configuration item 'socksProxy' must be a string"sv); if (auto url = URL::Parser::basic_parse(value.as_string()); !url.has_value()) - return Error::from_code(ErrorCode::InvalidArgument, "Proxy configuration item 'proxyAutoconfigUrl' must be a valid URL"sv); + return Error::from_code(ErrorCode::InvalidArgument, "Proxy configuration item 'socksProxy' must be a valid URL"sv); return {}; }