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)
This commit is contained in:
@@ -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 != "")
|
||||
|
||||
Reference in New Issue
Block a user