From ae7faf20d5fb3e2415ccadc37100dfc44aa0cd94 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Sun, 26 May 2019 18:35:13 +0300 Subject: [PATCH] Exceptions should be caught by reference, not by value. --- 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 5c1b0867035e2..c6132a2686e4e 100644 --- a/src/wallet/wallettool.cpp +++ b/src/wallet/wallettool.cpp @@ -59,7 +59,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; }