diff options
| author | Kristaps Kaupe <[email protected]> | 2019-05-26 18:35:13 +0300 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-06-18 15:49:58 -0400 |
| commit | e29aa6e72ecf9e0530712bd6c5790b7252d9ae84 (patch) | |
| tree | c51d0367a5ed7610149ec9c72e5fe7c72c966ada | |
| parent | tinyformat: Add doc to Bitcoin Core specific strprintf (diff) | |
| download | discoin-e29aa6e72ecf9e0530712bd6c5790b7252d9ae84.tar.xz discoin-e29aa6e72ecf9e0530712bd6c5790b7252d9ae84.zip | |
Exceptions should be caught by reference, not by value.
Github-Pull: #16095
Rebased-From: ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94
| -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 797f05118..b47195cfb 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; } |