diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-07-27 14:38:45 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-07-27 14:38:46 -0400 |
commit | ef4fac0ea5b4891f4529e4b59dfd1f7aeb3009b5 (patch) | |
tree | fb0bc643806bba8c5482dc3750ccecd187d673db /src/wallet | |
parent | 365384fd9f3145e604167fcb0b7358f2c67b26f6 (diff) | |
parent | 620361fce8b3d3c274a7b2beaed199b65ac4fb41 (diff) |
Merge #13775: doc: Remove newlines from error message
620361fce8 Fix accidental use of the addition assignment operator ("+="). Remove newlines from error message. (practicalswift)
Pull request description:
Fix accidental use of the addition assignment operator (`+=`).
_Note to reviewers:_ Perhaps the `\n`:s should be removed too?
Tree-SHA512: 4e8c2dfd6025d78ef9d60522297994829dacc447e6b6782e15c0bdd5dd2daa17ca9a8948bfa9a15be57d9286092356381d7e6747980303852d273eb0df0dd76b
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 3ec6aefaec..9c76a85384 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4109,7 +4109,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name, // Regenerate the keypool if upgraded to HD if (hd_upgrade) { if (!walletInstance->TopUpKeyPool()) { - InitError(_("Unable to generate keys") += "\n"); + InitError(_("Unable to generate keys")); return nullptr; } } @@ -4137,7 +4137,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(const std::string& name, // Top up the keypool if (!walletInstance->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS) && !walletInstance->TopUpKeyPool()) { - InitError(_("Unable to generate initial keys") += "\n"); + InitError(_("Unable to generate initial keys")); return nullptr; } |