From 44235713ed0ad1810328f21108d32bbac04de87b Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 26 Feb 2014 13:23:52 +0100 Subject: 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) --- src/rpcclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/rpcclient.cpp') 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 != "") -- cgit v1.2.3