diff options
author | Kristaps Kaupe <kristaps@blogiem.lv> | 2019-05-26 18:35:13 +0300 |
---|---|---|
committer | Kristaps Kaupe <kristaps@blogiem.lv> | 2019-05-26 18:35:13 +0300 |
commit | ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94 (patch) | |
tree | 1079dae4145de0b83a06525ed9acd0157508a06f /src/wallet/wallettool.cpp | |
parent | 8ab4f282c06d67074b872dbda0be37636fdd5186 (diff) |
Exceptions should be caught by reference, not by value.
Diffstat (limited to 'src/wallet/wallettool.cpp')
-rw-r--r-- | src/wallet/wallettool.cpp | 2 |
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; } |