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 | |
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
-rw-r--r-- | src/init.cpp | 2 | ||||
-rw-r--r-- | src/wallet/wallet.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp index c7ea40817d..a648785ad4 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -927,7 +927,7 @@ bool AppInitParameterInteraction() // also see: InitParameterInteraction() if (!fs::is_directory(GetBlocksDir(false))) { - return InitError(strprintf(_("Specified blocks directory \"%s\" does not exist.\n"), gArgs.GetArg("-blocksdir", "").c_str())); + return InitError(strprintf(_("Specified blocks directory \"%s\" does not exist."), gArgs.GetArg("-blocksdir", "").c_str())); } // if using block pruning, then disallow txindex 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; } |