summaryrefslogtreecommitdiff
path: root/credential-store.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-12-11 10:40:54 -0800
committerJunio C Hamano <gitster@pobox.com>2015-12-11 10:40:55 -0800
commite0048d3e0d95dca049423b17b97e27fef1d0da5a (patch)
treee0bfd398f949ea7f0c1eb8fc91e25eb9eba38fac /credential-store.c
parent7d722536dd86b5fbd0c0434bfcea5588132ee6ad (diff)
parent08a3651fe7f3163acbac461e0daf370329a1d332 (diff)
downloadgit-e0048d3e0d95dca049423b17b97e27fef1d0da5a.tar.gz
Merge branch 'sg/lock-file-commit-error'
Cosmetic improvement to lock-file error messages. * sg/lock-file-commit-error: Make error message after failing commit_lock_file() less confusing
Diffstat (limited to 'credential-store.c')
-rw-r--r--credential-store.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/credential-store.c b/credential-store.c
index 00aea3aa30..fc67d16c10 100644
--- a/credential-store.c
+++ b/credential-store.c
@@ -64,7 +64,8 @@ static void rewrite_credential_file(const char *fn, struct credential *c,
print_line(extra);
parse_credential_file(fn, c, NULL, print_line);
if (commit_lock_file(&credential_lock) < 0)
- die_errno("unable to commit credential store");
+ die_errno("unable to write credential store: %s",
+ strerror(errno));
}
static void store_credential_file(const char *fn, struct credential *c)