diff --git a/Socket.cpp b/Socket.cpp index 7152afc5..c771fdb0 100644 --- a/Socket.cpp +++ b/Socket.cpp @@ -48,7 +48,7 @@ CSockManager::CSockManager() : TSocketManager() { int i = ares_init(&GetAres()); if (i != ARES_SUCCESS) { CUtils::PrintError("Could not initialize c-ares: " + CString(ares_strerror(i))); - exit(0); + exit(-1); } DEBUG("Successfully initialized c-ares"); #endif diff --git a/znc.cpp b/znc.cpp index 9bbb1801..3aff4ead 100644 --- a/znc.cpp +++ b/znc.cpp @@ -27,7 +27,7 @@ namespace CZNC::CZNC() { if (!InitCsocket()) { - CUtils::PrintError("Failed to initialize Csocket!"); + CUtils::PrintError("Could not initialize Csocket!"); exit(-1); }