From c0ff1dce0bce53a5e324b9eb77ca7fe3a37f02df Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Wed, 8 Sep 2021 14:36:20 -0400 Subject: common: Move error handling to error.cpp/h This allows us to avoid implicitly including every time common_funcs.h is included. --- src/core/network/network.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/network/network.cpp') diff --git a/src/core/network/network.cpp b/src/core/network/network.cpp index 4732d44858..72eea52f03 100644 --- a/src/core/network/network.cpp +++ b/src/core/network/network.cpp @@ -7,7 +7,8 @@ #include #include #include -#include "common/common_funcs.h" + +#include "common/error.h" #ifdef _WIN32 #include @@ -223,7 +224,7 @@ Errno GetAndLogLastError() { if (err == Errno::AGAIN) { return err; } - LOG_ERROR(Network, "Socket operation error: {}", NativeErrorToString(e)); + LOG_ERROR(Network, "Socket operation error: {}", Common::NativeErrorToString(e)); return err; } -- cgit v1.2.3