Exceptions should be caught by reference, not by value.

This commit is contained in:
Kristaps Kaupe 2019-05-26 18:35:13 +03:00
parent 8ab4f282c0
commit ae7faf20d5

View file

@ -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;
}