Exit on failure here

This commit is contained in:
Zorg committed 2016-03-07 23:15:40 -05:00
1 parent 00368011c8
commit cf3674b2d7
1 file changed
+2
+2
View File
@@ -5,6 +5,7 @@
#import "SUStatusController.h"
#import "SULog.h"
#import "SULocalizations.h"
#import "SUFileManager.h"
#include <unistd.h>
@@ -300,6 +301,7 @@ int main(int __unused argc, const char __unused *argv[])
if (newRunningApplication == nil) {
SULog(@"Failed to create second instance of tool with error: %@", launchError);
return EXIT_FAILURE;
}
return EXIT_SUCCESS;