Skip to content

Commit ae7faf2

Browse files
committed
Exceptions should be caught by reference, not by value.
1 parent 8ab4f28 commit ae7faf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallettool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static std::shared_ptr<CWallet> LoadWallet(const std::string& name, const fs::pa
5959
try {
6060
bool first_run;
6161
load_wallet_ret = wallet_instance->LoadWallet(first_run);
62-
} catch (const std::runtime_error) {
62+
} catch (const std::runtime_error&) {
6363
fprintf(stderr, "Error loading %s. Is wallet being used by another process?\n", name.c_str());
6464
return nullptr;
6565
}

0 commit comments

Comments
 (0)