diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-10-27 17:39:42 +0100 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2015-10-27 17:39:42 +0100 |
commit | ad5aae15b40dcbdbfc08221e615f06b030b92334 (patch) | |
tree | 731356d063c6e597c24b9a877e8f9dcff92af31e /src/bitcoin-cli.cpp | |
parent | 8f3b3cdee497b8a1d7c6a7279e7bb13435527b60 (diff) |
constify missing catch cases
- ensure all missing catch cases are constant where possible
Diffstat (limited to 'src/bitcoin-cli.cpp')
-rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 6f22c70494..9564573657 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -94,7 +94,7 @@ static bool AppInitRPC(int argc, char* argv[]) // Check for -testnet or -regtest parameter (BaseParams() calls are only valid after this clause) try { SelectBaseParams(ChainNameFromCommandLine()); - } catch(std::exception &e) { + } catch (const std::exception& e) { fprintf(stderr, "Error: %s\n", e.what()); return false; } |