aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpcclient.cpp')
-rw-r--r--src/rpcclient.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp
index c404ac274b..37a501bb17 100644
--- a/src/rpcclient.cpp
+++ b/src/rpcclient.cpp
@@ -233,10 +233,11 @@ 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()");
+ PrintExceptionContinue(NULL, "CommandLineRPC()");
+ throw;
}
if (strPrint != "")