aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2014-02-26 13:19:09 +0100
committerWladimir J. van der Laan <[email protected]>2014-02-26 13:19:46 +0100
commit3480bf7c650bb14a31020c3ef33e76edea650e13 (patch)
treee023e658248a11a45fd3c10960275b5b3747028e /src/rpcclient.cpp
parentMerge pull request #3742 from laanwj/2014_02_win32_protobuf_determinism (diff)
parentFix bitcoin-cli exit status code (diff)
downloaddiscoin-3480bf7c650bb14a31020c3ef33e76edea650e13.tar.xz
discoin-3480bf7c650bb14a31020c3ef33e76edea650e13.zip
Merge pull request #3736
a719903 Fix bitcoin-cli exit status code (Cozz Lovan)
Diffstat (limited to 'src/rpcclient.cpp')
-rw-r--r--src/rpcclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp
index c404ac274..0d1746b8c 100644
--- a/src/rpcclient.cpp
+++ b/src/rpcclient.cpp
@@ -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()");