mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
use EXIT_ codes instead of magic numbers
To be consistent with other exit() calls.
This commit is contained in:
@@ -136,17 +136,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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user