Use EXIT_FAILURE when calling exit()
This commit is contained in:
parent
997f9f795c
commit
ea73614994
@ -151,17 +151,17 @@ bool AppInit(int argc, char* argv[])
|
||||
if (!AppInitBasicSetup())
|
||||
{
|
||||
// InitError will have been called with detailed error, which ends up on console
|
||||
exit(1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (!AppInitParameterInteraction())
|
||||
{
|
||||
// InitError will have been called with detailed error, which ends up on console
|
||||
exit(1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (!AppInitSanityChecks())
|
||||
{
|
||||
// InitError will have been called with detailed error, which ends up on console
|
||||
exit(1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
if (GetBoolArg("-daemon", false))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user