From: Christian Herdtweck Date: Mon, 12 Jan 2015 14:44:15 +0000 (+0100) Subject: make error return codes from main unique again X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=c34a1f77b14353e6bf438d80eb74c736eeee0483;p=pingcheck make error return codes from main unique again --- diff --git a/src/main.cpp b/src/main.cpp index 4ad6ce6..5c7ae3f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -484,12 +484,12 @@ int main( int argc, const char *argv[] ) catch ( const std::exception &ex ) { GlobalLogger.error() << "Uncaught exception. " << ex.what() << endl; - ret_code = 1; + ret_code = 2; ++n_exceptions; } catch (...) { GlobalLogger.error() << "Caught unknown exception!" << endl; - ret_code = 2; + ret_code = 3; ++n_exceptions; }