git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Better error message when we are unable to lock the index file
@ 2006-08-12  7:37 Fredrik Kuivinen
  2006-08-12  8:03 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Fredrik Kuivinen @ 2006-08-12  7:37 UTC (permalink / raw)
  To: git; +Cc: junkio




Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>

---

 builtin-update-index.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/builtin-update-index.c b/builtin-update-index.c
index 24dca47..f8f5e10 100644
--- a/builtin-update-index.c
+++ b/builtin-update-index.c
@@ -493,7 +493,7 @@ int cmd_update_index(int argc, const cha
 
 	newfd = hold_lock_file_for_update(lock_file, get_index_file());
 	if (newfd < 0)
-		die("unable to create new cachefile");
+		die("unable to lock index file: %s", strerror(errno));
 
 	entries = read_cache();
 	if (entries < 0)

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-08-12 19:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-12  7:37 [PATCH] Better error message when we are unable to lock the index file Fredrik Kuivinen
2006-08-12  8:03 ` Junio C Hamano
2006-08-12  8:09   ` Junio C Hamano
2006-08-12 17:16     ` Shawn Pearce
2006-08-12 19:19   ` Fredrik Kuivinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).