Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2009-04-30 01:27:54 +0400
committerJunio C Hamano <gitster@pobox.com>2009-05-06 09:49:43 +0400
commite88d022af96312e64216bfec31bd6749277c335a (patch)
tree290cff46e8f4e423d4888cc2da60a374999b7a23 /config.c
parent066e596abb2768be1ef3984a55ce39643fbb36e5 (diff)
improve error message in config.c
Show errno if opening a lockfile fails. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 7a83c76f4b..5d9072c1b9 100644
--- a/config.c
+++ b/config.c
@@ -954,7 +954,7 @@ int git_config_set_multivar(const char* key, const char* value,
lock = xcalloc(sizeof(struct lock_file), 1);
fd = hold_lock_file_for_update(lock, config_filename, 0);
if (fd < 0) {
- error("could not lock config file %s", config_filename);
+ error("could not lock config file %s: %s", config_filename, strerror(errno));
free(store.key);
ret = -1;
goto out_free;