aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-09-08 14:36:20 -0400
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-09-11 17:19:14 -0400
commitc0ff1dce0bce53a5e324b9eb77ca7fe3a37f02df (patch)
treed4f9a8eae42dd93ff1e7393ffea03b30faeab125 /src/core
parentf35f5c5072f983b1281bf38357c8d0f38046d30e (diff)
common: Move error handling to error.cpp/h
This allows us to avoid implicitly including <string> every time common_funcs.h is included.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/network/network.cpp5
1 files changed, 3 insertions, 2 deletions
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 <limits>
#include <utility>
#include <vector>
-#include "common/common_funcs.h"
+
+#include "common/error.h"
#ifdef _WIN32
#include <winsock2.h>
@@ -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;
}