Fix bitcoin-cli exit status code
This commit is contained in:
@@ -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()");
|
||||
|
||||
Reference in New Issue
Block a user