From a7199038042a79d24bce7e94a3984ad3e05be184 Mon Sep 17 00:00:00 2001 From: Cozz Lovan Date: Mon, 24 Feb 2014 14:08:56 +0100 Subject: Fix bitcoin-cli exit status code --- src/rpcclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpcclient.cpp') 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()"); -- cgit v1.2.3