From 4fd1b09f7fa4fcd7849d21037ff3135b85e06f92 Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 1 Aug 2009 09:06:20 +0000 Subject: [PATCH] Fix some startup error messages We should *never* use exit(0); on error and it doesn't hurt if our error messages use a similar wording. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1585 726aef4b-f618-498e-8847-2d620e286838 --- Socket.cpp | 2 +- znc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }