diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2009-04-29 23:27:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-05 22:49:43 -0700 |
commit | e88d022af96312e64216bfec31bd6749277c335a (patch) | |
tree | 290cff46e8f4e423d4888cc2da60a374999b7a23 | |
parent | t4018-diff-funcname: add cpp xfuncname pattern to syntax test (diff) | |
download | tgif-e88d022af96312e64216bfec31bd6749277c335a.tar.xz |
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>
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |