diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp index cb41f1ea73..818a992bb8 100644 --- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp @@ -162,8 +162,8 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, con ByteBuffer data; if (url.data_payload_is_base64()) { auto data_maybe = decode_base64(url.data_payload()); - if (!data_maybe.has_value()) { - auto error_message = "Base64 data contains an invalid character"sv; + if (data_maybe.is_error()) { + auto error_message = data_maybe.error().string_literal(); log_failure(request, error_message); error_callback(error_message, {}); return; |