Fix wording of 'git-crypt lock' error message.

Thanks to Elliot Saba.
This commit is contained in:
Andrew Ayer
2015-02-07 08:52:07 -08:00
parent 1ca8f89602
commit f5d36f0008

View File

@@ -963,7 +963,7 @@ int lock (int argc, const char** argv)
// just handle the given key
std::string internal_key_path(get_internal_key_path(key_name));
if (access(internal_key_path.c_str(), F_OK) == -1 && errno == ENOENT) {
std::clog << "Error: this repository is not currently locked";
std::clog << "Error: this repository is already locked";
if (key_name) {
std::clog << " with key '" << key_name << "'";
}