summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2009-04-29 23:27:54 +0200
committerJunio C Hamano <gitster@pobox.com>2009-04-29 18:37:58 -0700
commit6ffd567bec439e7809ee0966556bd5e72fb78de4 (patch)
tree3fb67ea1ce196421aee7ca39ea1ddca503d8e29f /config.c
parentd1c8c0c8c42912eb768a05115c798de50e595f8b (diff)
downloadgit-6ffd567bec439e7809ee0966556bd5e72fb78de4.tar.gz
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 563a91594d..f76a78311e 100644
--- a/config.c
+++ b/config.c
@@ -1001,7 +1001,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;