aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zenserver-test/zenserver-test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/zenserver-test/zenserver-test.cpp b/zenserver-test/zenserver-test.cpp
index a92273486..139a43981 100644
--- a/zenserver-test/zenserver-test.cpp
+++ b/zenserver-test/zenserver-test.cpp
@@ -163,7 +163,11 @@ public:
private:
void Reset() {}
- void OnError(const std::error_code& Error) { ZEN_ERROR("HTTP client error! '{}'", Error.message()); }
+ void OnError(const std::error_code& Error)
+ {
+ using namespace fmt::literals;
+ zen::ThrowLastError("HTTP client error! '{}'"_format(Error.message()));
+ }
int OnHeader(const char* Data, size_t Bytes)
{