From e29aa6e72ecf9e0530712bd6c5790b7252d9ae84 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Sun, 26 May 2019 18:35:13 +0300 Subject: Exceptions should be caught by reference, not by value. Github-Pull: #16095 Rebased-From: ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94 --- src/wallet/wallettool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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; } -- cgit v1.2.3