Exceptions should be caught by reference, not by value.

Github-Pull: #16095
Rebased-From: ae7faf20d5
This commit is contained in:
Kristaps Kaupe
2019-05-26 18:35:13 +03:00
committed by MarcoFalke
parent f88959ba7c
commit e29aa6e72e

View File

@@ -62,7 +62,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;
}