diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-10-07 17:29:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-11 21:52:13 +0200 |
commit | 53b7edd5b92bd74924a47b84f51d55e38e9164d6 (patch) | |
tree | f48876188fdc15d81b411628c5ee9735d2f857ff | |
parent | 9b891a423bbb2e7d047b37feda0ede56cfa9353a (diff) | |
download | serenity-53b7edd5b92bd74924a47b84f51d55e38e9164d6.zip |
pro: Print the response code if it's an error
-rw-r--r-- | Userland/Utilities/pro.cpp | 3 |
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) { |