Fix grammar in error messages.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
dc9c95b705
commit
21fee305a2
|
@ -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"))
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue