From aa72b2507eaf2ad9a7a0c969572aa96f69d21cbd Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 30 Mar 2021 16:21:08 +0200 Subject: [PATCH] fix weird macro compile error --- src/Http.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Http.cpp b/src/Http.cpp index 6f8a744..d6ce399 100644 --- a/src/Http.cpp +++ b/src/Http.cpp @@ -1,6 +1,8 @@ #include "Http.h" #include "Common.h" +#undef error + #include #include #include @@ -47,7 +49,7 @@ std::string Http::GET(const std::string& host, int port, const std::string& targ return result; } catch (const std::exception& e) { - error(e.what()); + Application::Console().Write(e.what()); return "-1"; } } @@ -137,7 +139,7 @@ std::string Http::POST(const std::string& host, const std::string& target, const return std::string(response.body()); } catch (const std::exception& e) { - error(e.what()); + Application::Console().Write(e.what()); return "-1"; } }