Use EXIT_FAILURE when calling exit()

This commit is contained in:
Alexander Block 2018-01-16 18:21:37 +01:00
parent 997f9f795c
commit ea73614994

View File

@ -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))
{