improve error reporting, remove duplicate code

This commit is contained in:
Lion Kortlepel committed 2021-09-09 12:14:32 +03:00
1 parent fdb5da2ed6
commit 1e2f060107
4 files changed
+50 -90

No files matched your search

+6 -1
View File
@@ -5,12 +5,15 @@ extern TSentry Sentry;
#include <array>
#include <atomic>
#include <cstring>
#include <deque>
#include <functional>
#include <memory>
#include <mutex>
#include <sstream>
#include "Compat.h"
#include "TConsole.h"
struct Version {
@@ -158,4 +161,6 @@ void LogChatMessage(const std::string& name, int id, const std::string& msg);
#define Biggest 30000
std::string Comp(std::string Data);
std::string DeComp(std::string Compressed);
std::string DeComp(std::string Compressed);
std::string GetPlatformAgnosticErrorString();
+1
View File
@@ -7,6 +7,7 @@
#include <sys/socket.h>
#include <termios.h>
#include <unistd.h>
#include <errno.h>
using SOCKET = int;
using DWORD = unsigned long;
using PDWORD = unsigned long*;