diff options
author | Linus Groh <mail@linusgroh.de> | 2022-10-04 21:03:23 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-05 09:12:59 +0100 |
commit | 398e44b27be1fc369f8c3ca103d5fd623621a5df (patch) | |
tree | efb81708eb1a400ecdf9be5ec32dbadbfebd0b71 /Userland/Libraries | |
parent | 25909dcc051db82bf7ab4e554a8eb8ec8b173863 (diff) | |
download | serenity-398e44b27be1fc369f8c3ca103d5fd623621a5df.zip |
LibWeb: Pass status code to ResourceLoader error callback when available
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp index e5cf0a6d98..c1270dc917 100644 --- a/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp +++ b/Userland/Libraries/LibWeb/Loader/ResourceLoader.cpp @@ -307,7 +307,7 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, Has error_builder.append("Load failed"sv); log_failure(request, error_builder.string_view()); if (error_callback) - error_callback(error_builder.to_string(), {}); + error_callback(error_builder.to_string(), status_code); return; } log_success(request); |