diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-02-26 13:23:52 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-02-26 13:23:52 +0100 |
commit | 44235713ed0ad1810328f21108d32bbac04de87b (patch) | |
tree | b76a7b63c32f9e8dcc6b9af6b96ae4b493b9fcf8 /src/util.cpp | |
parent | 3480bf7c650bb14a31020c3ef33e76edea650e13 (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/util.cpp')
-rw-r--r-- | src/util.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/util.cpp b/src/util.cpp index 8cfd1c2e03..0cc472ac97 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -948,15 +948,6 @@ void LogException(std::exception* pex, const char* pszThread) LogPrintf("\n%s", message); } -void PrintException(std::exception* pex, const char* pszThread) -{ - std::string message = FormatException(pex, pszThread); - LogPrintf("\n\n************************\n%s\n", message); - fprintf(stderr, "\n\n************************\n%s\n", message.c_str()); - strMiscWarning = message; - throw; -} - void PrintExceptionContinue(std::exception* pex, const char* pszThread) { std::string message = FormatException(pex, pszThread); |