From 21fee305a2d2c595bc813d0830289dadf990de4f Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Fri, 4 Sep 2020 14:52:05 +0100 Subject: [PATCH] Fix grammar in error messages. Signed-off-by: Daira Hopwood --- qa/rpc-tests/feature_walletfile.py | 4 ++-- src/wallet/wallet.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/rpc-tests/feature_walletfile.py b/qa/rpc-tests/feature_walletfile.py index 669641160..6c751c1f5 100755 --- a/qa/rpc-tests/feature_walletfile.py +++ b/qa/rpc-tests/feature_walletfile.py @@ -34,12 +34,12 @@ class WalletFileTest(BitcoinTestFramework): invalidpath = os.path.join("/foo/", "foo.dat") stop_node(self.nodes[0], 0) assert_start_raises_init_error(0, "-wallet=%s" % invalidpath, - "Error: Absolute path %s do not exist") + "Error: Absolute path %s does not exist") # relative path do not exist invalidpath = os.path.join("wallet", "foo.dat") assert_start_raises_init_error(0, "-wallet=%s" % invalidpath, - "Error: Relative path %s do not exist") + "Error: Relative path %s does not exist") # create dir and retry os.mkdir(os.path.join(self.options.tmpdir, "node0", "regtest", "wallet")) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index d616cb2f4..d8eb2d7cc 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -877,12 +877,12 @@ bool CWallet::Verify() boost::filesystem::path path(walletFile); if (path.is_absolute()) { if (!boost::filesystem::exists(path.parent_path())) { - return UIError(strprintf(_("Absolute path %s do not exist"), walletFile)); + return UIError(strprintf(_("Absolute path %s does not exist"), walletFile)); } } else { boost::filesystem::path full_path = GetDataDir() / path; if (!boost::filesystem::exists(full_path.parent_path())) { - return UIError(strprintf(_("Relative path %s do not exist"), walletFile)); + return UIError(strprintf(_("Relative path %s does not exist"), walletFile)); } } }