diff options
| author | Kristaps Kaupe <[email protected]> | 2019-05-26 18:35:13 +0300 |
|---|---|---|
| committer | Kristaps Kaupe <[email protected]> | 2019-05-26 18:35:13 +0300 |
| commit | ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94 (patch) | |
| tree | 1079dae4145de0b83a06525ed9acd0157508a06f /src/wallet/wallettool.cpp | |
| parent | Merge #15622: Remove global symbols: Avoid using the global namespace if poss... (diff) | |
| download | discoin-ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94.tar.xz discoin-ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94.zip | |
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 5c1b08670..c6132a268 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; } |