Fix bitcoin-cli exit status code

This commit is contained in:
Cozz Lovan
2014-02-24 14:08:56 +01:00
parent 34b9ea7db1
commit a719903804
2 changed files with 8 additions and 5 deletions

View File

@@ -233,7 +233,7 @@ int CommandLineRPC(int argc, char *argv[])
}
catch (std::exception& e) {
strPrint = string("error: ") + e.what();
nRet = 87;
nRet = abs(RPC_MISC_ERROR);
}
catch (...) {
PrintException(NULL, "CommandLineRPC()");