summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-10-07 17:29:07 +0100
committerAndreas Kling <kling@serenityos.org>2022-10-11 21:52:13 +0200
commit53b7edd5b92bd74924a47b84f51d55e38e9164d6 (patch)
treef48876188fdc15d81b411628c5ee9735d2f857ff /Userland/Utilities
parent9b891a423bbb2e7d047b37feda0ede56cfa9353a (diff)
downloadserenity-53b7edd5b92bd74924a47b84f51d55e38e9164d6.zip
pro: Print the response code if it's an error
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/pro.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Utilities/pro.cpp b/Userland/Utilities/pro.cpp
index c434aa7fbb..ae74ebe67c 100644
--- a/Userland/Utilities/pro.cpp
+++ b/Userland/Utilities/pro.cpp
@@ -300,6 +300,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
}
} else {
following_url = false;
+
+ if (status_code_value >= 400)
+ warnln("Request returned error {}", status_code_value);
}
};
request->on_finish = [&](bool success, auto) {