mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 11:13:23 -03:00
wallet: Fix already-loading error message grammar
This commit is contained in:
parent
ea96e17e1f
commit
ae9d26a8f0
2 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ std::shared_ptr<CWallet> LoadWallet(interfaces::Chain& chain, const std::string&
|
||||||
{
|
{
|
||||||
auto result = WITH_LOCK(g_loading_wallet_mutex, return g_loading_wallet_set.insert(name));
|
auto result = WITH_LOCK(g_loading_wallet_mutex, return g_loading_wallet_set.insert(name));
|
||||||
if (!result.second) {
|
if (!result.second) {
|
||||||
error = Untranslated("Wallet already being loading.");
|
error = Untranslated("Wallet already loading.");
|
||||||
status = DatabaseStatus::FAILED_LOAD;
|
status = DatabaseStatus::FAILED_LOAD;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@ def test_load_unload(node, name):
|
||||||
node.loadwallet(name)
|
node.loadwallet(name)
|
||||||
node.unloadwallet(name)
|
node.unloadwallet(name)
|
||||||
except JSONRPCException as e:
|
except JSONRPCException as e:
|
||||||
if e.error['code'] == -4 and 'Wallet already being loading' in e.error['message']:
|
if e.error['code'] == -4 and 'Wallet already loading' in e.error['message']:
|
||||||
got_loading_error = True
|
got_loading_error = True
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue