diff --git a/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp b/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp index bddfd089f7b..1550da1ac32 100644 --- a/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Fetching/Fetching.cpp @@ -2226,7 +2226,7 @@ WebIDL::ExceptionOr> nonstandard_resource_load auto response = Infrastructure::Response::create(vm); // FIXME: This is ugly, ResourceLoader should tell us. if (status_code.value_or(0) == 0) { - response = Infrastructure::Response::network_error(vm, "HTTP request failed"_string); + response = Infrastructure::Response::network_error(vm, TRY_OR_IGNORE(String::from_byte_string(error))); } else { response->set_type(Infrastructure::Response::Type::Error); response->set_status(status_code.value_or(400));