From 53b7edd5b92bd74924a47b84f51d55e38e9164d6 Mon Sep 17 00:00:00 2001 From: Sam Atkins Date: Fri, 7 Oct 2022 17:29:07 +0100 Subject: [PATCH] pro: Print the response code if it's an error --- Userland/Utilities/pro.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 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) {