summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 066e596)
raw | patch | inline | side by side (parent: 066e596)
author | Alex Riesen <raa.lkml@gmail.com> | |
Wed, 29 Apr 2009 21:27:54 +0000 (23:27 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 May 2009 05:49:43 +0000 (22:49 -0700) |
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>
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c | patch | blob | history |
diff --git a/config.c b/config.c
index 7a83c76f4b0480416b01213c0aca30b1e92556d2..5d9072c1b937783f0c7759157d03d3ffb5897c14 100644 (file)
--- a/config.c
+++ b/config.c
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;