diff options
| author | UdjinM6 <[email protected]> | 2016-11-02 21:59:09 +0300 |
|---|---|---|
| committer | UdjinM6 <[email protected]> | 2016-11-04 18:40:33 +0300 |
| commit | bd0de1386e1c7f9b875d52290de0d561c8d56bc9 (patch) | |
| tree | d56a36399bb9fe64e9cd22e98ce31bc90fa19b40 /src/bitcoind.cpp | |
| parent | Merge #8828: Move CWalletDB::ReorderTransactions to CWallet (diff) | |
| download | discoin-bd0de1386e1c7f9b875d52290de0d561c8d56bc9.tar.xz discoin-bd0de1386e1c7f9b875d52290de0d561c8d56bc9.zip | |
Fix exit codes:
- `--help`, `--version` etc should exit with `0` i.e. no error ("not enough args" case should still trigger an error)
- error reading config file should exit with `1`
Slightly refactor AppInitRPC/AppInitRawTx to return standard exit codes (EXIT_FAILURE/EXIT_SUCCESS) or CONTINUE_EXECUTION (-1)
Diffstat (limited to 'src/bitcoind.cpp')
| -rw-r--r-- | src/bitcoind.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 351463c25..a0d039359 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -92,7 +92,7 @@ bool AppInit(int argc, char* argv[]) } fprintf(stdout, "%s", strUsage.c_str()); - return false; + return true; } try |