aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristaps Kaupe <kristaps@blogiem.lv>2019-05-26 18:35:13 +0300
committerMarcoFalke <falke.marco@gmail.com>2019-06-18 15:49:58 -0400
commite29aa6e72ecf9e0530712bd6c5790b7252d9ae84 (patch)
treec51d0367a5ed7610149ec9c72e5fe7c72c966ada
parentf88959ba7c30d82d7fd70a399326a4347cc36911 (diff)
downloadbitcoin-e29aa6e72ecf9e0530712bd6c5790b7252d9ae84.tar.xz
Exceptions should be caught by reference, not by value.
Github-Pull: #16095 Rebased-From: ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94
-rw-r--r--src/wallet/wallettool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallettool.cpp b/src/wallet/wallettool.cpp
index 797f051189..b47195cfb6 100644
--- a/src/wallet/wallettool.cpp
+++ b/src/wallet/wallettool.cpp
@@ -62,7 +62,7 @@ static std::shared_ptr<CWallet> LoadWallet(const std::string& name, const fs::pa
try {
bool first_run;
load_wallet_ret = wallet_instance->LoadWallet(first_run);
- } catch (const std::runtime_error) {
+ } catch (const std::runtime_error&) {
fprintf(stderr, "Error loading %s. Is wallet being used by another process?\n", name.c_str());
return nullptr;
}