Exceptions should be caught by reference, not by value.
This commit is contained in:
1 parent
8ab4f282c0
commit
ae7faf20d5
1 file changed
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user