aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallettool.cpp
diff options
context:
space:
mode:
authorKristaps Kaupe <kristaps@blogiem.lv>2019-05-26 18:35:13 +0300
committerKristaps Kaupe <kristaps@blogiem.lv>2019-05-26 18:35:13 +0300
commitae7faf20d5fb3e2415ccadc37100dfc44aa0cd94 (patch)
tree1079dae4145de0b83a06525ed9acd0157508a06f /src/wallet/wallettool.cpp
parent8ab4f282c06d67074b872dbda0be37636fdd5186 (diff)
Exceptions should be caught by reference, not by value.
Diffstat (limited to 'src/wallet/wallettool.cpp')
-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 5c1b086703..c6132a2686 100644
--- a/src/wallet/wallettool.cpp
+++ b/src/wallet/wallettool.cpp
@@ -59,7 +59,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;
}