aboutsummaryrefslogtreecommitdiff
path: root/credential-store.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2015-12-11 11:14:18 -0800
committerJunio C Hamano <gitster@pobox.com>2015-12-11 11:14:18 -0800
commitabca668a93f0039c8c3fe81a6625fcdf81c35bdf (patch)
tree4c76311689c4e2f16694cf4cf2f7ee29cd4b54a8 /credential-store.c
parent76058817e80725a2fd1f4935289f663b7aefc024 (diff)
parent08a3651fe7f3163acbac461e0daf370329a1d332 (diff)
downloadgit-abca668a93f0039c8c3fe81a6625fcdf81c35bdf.tar.gz
git-abca668a93f0039c8c3fe81a6625fcdf81c35bdf.tar.xz
Merge branch 'sg/lock-file-commit-error' into maint
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 00aea3aa3..fc67d16c1 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)