Skip to content

Commit

Permalink
Exceptions should be caught by reference, not by value.
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed May 26, 2019
1 parent 8ab4f28 commit ae7faf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallettool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ae7faf2

Please sign in to comment.