diff options
| author | Dan Engelbrecht <[email protected]> | 2024-01-29 15:52:48 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-29 15:52:48 +0100 |
| commit | 6d3211775f00a8ef087b05594bd6fe251dd0e5b8 (patch) | |
| tree | db9db3b9aa58227b6d08620e601b3baddb2c79e1 /src/zenhttp | |
| parent | exception on basicfile read error (#642) (diff) | |
| download | zen-6d3211775f00a8ef087b05594bd6fe251dd0e5b8.tar.xz zen-6d3211775f00a8ef087b05594bd6fe251dd0e5b8.zip | |
fix response error conversion (#643)
* make sure we properly convert compact-binary results to text when receiving errors
* log fix
Diffstat (limited to 'src/zenhttp')
| -rw-r--r-- | src/zenhttp/httpclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhttp/httpclient.cpp b/src/zenhttp/httpclient.cpp index 07f631dac..c9005b1cf 100644 --- a/src/zenhttp/httpclient.cpp +++ b/src/zenhttp/httpclient.cpp @@ -1089,7 +1089,7 @@ HttpClient::Response::ErrorMessage(std::string_view Prefix) const } else if (StatusCode != HttpResponseCode::ImATeapot && (int)StatusCode) { - return fmt::format("{}: HTTP error {} {} ({})", Prefix, (int)StatusCode, zen::ToString(StatusCode), AsText()); + return fmt::format("{}: HTTP error {} {} ({})", Prefix, (int)StatusCode, zen::ToString(StatusCode), ToText()); } else { |