From: Alex Riesen Date: Wed, 29 Apr 2009 21:27:54 +0000 (+0200) Subject: improve error message in config.c X-Git-Tag: v1.6.3~9^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e88d022af96312e64216bfec31bd6749277c335a;p=git.git improve error message in config.c Show errno if opening a lockfile fails. Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- diff --git a/config.c b/config.c index 7a83c76f4..5d9072c1b 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;