diff options
Diffstat (limited to 'src/zenhttp/httpclient.cpp')
| -rw-r--r-- | src/zenhttp/httpclient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/zenhttp/httpclient.cpp b/src/zenhttp/httpclient.cpp index c5c808c23..e4575701a 100644 --- a/src/zenhttp/httpclient.cpp +++ b/src/zenhttp/httpclient.cpp @@ -171,12 +171,12 @@ HttpClient::Response::ErrorMessage(std::string_view Prefix) const { if (Error.has_value()) { - return fmt::format("{}: {}", Prefix, Error->ErrorMessage); + return fmt::format("{}{}HTTP error ({}) '{}'", Prefix, Prefix.empty() ? ""sv : ": "sv, Error->ErrorCode, Error->ErrorMessage); } else if (StatusCode != HttpResponseCode::ImATeapot && (int)StatusCode) { std::string TextResponse = ToText(); - return fmt::format("{}{}HTTP error {} {}{}", + return fmt::format("{}{}HTTP status ({}) '{}'{}", Prefix, Prefix.empty() ? ""sv : ": "sv, (int)StatusCode, @@ -185,7 +185,7 @@ HttpClient::Response::ErrorMessage(std::string_view Prefix) const } else { - return fmt::format("{}{}unknown error", Prefix, Prefix.empty() ? ""sv : ": "sv); + return fmt::format("{}{}Unknown error", Prefix, Prefix.empty() ? ""sv : ": "sv); } } |