Exceptions should be caught by reference, not by value.
This commit is contained in:
parent
8ab4f282c0
commit
ae7faf20d5
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ static std::shared_ptr<CWallet> LoadWallet(const std::string& name, const fs::pa
|
||||||
try {
|
try {
|
||||||
bool first_run;
|
bool first_run;
|
||||||
load_wallet_ret = wallet_instance->LoadWallet(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());
|
fprintf(stderr, "Error loading %s. Is wallet being used by another process?\n", name.c_str());
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue