From eaeacbd8de1443731c26595f6ee0f6e844529579 Mon Sep 17 00:00:00 2001 From: Mackenzie <41524393+Mack29446@users.noreply.github.com> Date: Fri, 27 Sep 2024 20:23:28 +0100 Subject: [PATCH] log non-200 status codes --- src/Network/Http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Http.cpp b/src/Network/Http.cpp index 6f9b746..6ca7310 100644 --- a/src/Network/Http.cpp +++ b/src/Network/Http.cpp @@ -81,7 +81,7 @@ std::string HTTP::Get(const std::string& IP) { Ret = res->body; } else { WriteHttpDebug(cli, "GET", IP, res); - error("Failed to GET '" + IP + "': " + res->reason + ", ssl verify = " + std::to_string(cli.get_openssl_verify_result())); + error("Failed to GET (status " + std::to_string(res->status) + ") '" + IP + "': " + res->reason + ", ssl verify = " + std::to_string(cli.get_openssl_verify_result())); } } else { if (isDownload) {