log non-200 status codes

This commit is contained in:
Mackenzie 2024-09-27 20:23:28 +01:00
parent c0c3d6b30e
commit eaeacbd8de

View File

@ -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) {