aboutsummaryrefslogtreecommitdiff
path: root/src/rpcclient.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-02-26 13:23:52 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-02-26 13:23:52 +0100
commit44235713ed0ad1810328f21108d32bbac04de87b (patch)
treeb76a7b63c32f9e8dcc6b9af6b96ae4b493b9fcf8 /src/rpcclient.cpp
parent3480bf7c650bb14a31020c3ef33e76edea650e13 (diff)
Replace PrintException with PrintExceptionContinue + throw
Just a pet peeve. (PrintException has exactly the same body as PrintExceptionContinue but does a re-throw at the end. Move these re-throws to the call site, this aids understanding what is going on as well as eliminates a bit of code duplication in util.cpp)
Diffstat (limited to 'src/rpcclient.cpp')
-rw-r--r--src/rpcclient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rpcclient.cpp b/src/rpcclient.cpp
index 0d1746b8ca..37a501bb17 100644
--- a/src/rpcclient.cpp
+++ b/src/rpcclient.cpp
@@ -236,7 +236,8 @@ int CommandLineRPC(int argc, char *argv[])
nRet = abs(RPC_MISC_ERROR);
}
catch (...) {
- PrintException(NULL, "CommandLineRPC()");
+ PrintExceptionContinue(NULL, "CommandLineRPC()");
+ throw;
}
if (strPrint != "")