]> granicus.if.org Git - icinga2/commitdiff
Rephrase 2 lines so they conform with the style
authorJean Flach <jean-marcel.flach@netways.de>
Wed, 21 Jan 2015 15:36:30 +0000 (16:36 +0100)
committerJean Flach <jean-marcel.flach@netways.de>
Wed, 21 Jan 2015 15:36:30 +0000 (16:36 +0100)
icinga-app/icinga.cpp

index 2389a2263eee2409bb4348772c2893cddb05d694..dd99800e17e5801fc1a91831c4bcbef7583b9790 100644 (file)
@@ -273,13 +273,13 @@ int Main(void)
                                catch (win32_error &ex) {
                                        if (int const * err = boost::get_error_info<errinfo_win32_error>(ex)) {
                                                Log(LogCritical, "icinga-app", "Could not load library \"" + libraryName + "\"");
-                                               exit(EXIT_FAILURE);
+                                               return EXIT_FAILURE;
                                        }
                                }
 #else /*_WIN32*/
                                catch (std::runtime_error &ex) {
                                        Log(LogCritical, "icinga-app", "Could not load library \"" + libraryName + "\"");
-                                       exit(EXIT_FAILURE);
+                                       return EXIT_FAILURE;
                                }
 #endif /*_WIN32*/
                        }