git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Better error message when we are unable to lock the index file

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
Aug 12, 2006, 07:37 UTC
Message-ID
<20060812073756.5442.5498.stgit@c165>
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)
Next: Junio C Hamano
Message 1 of 5 in “Better error message when we are unable to lock the index file”
  1. Better error message when we are unable to lock the index fileFredrik Kuivinen, Aug 12, 2006
  2. Junio C HamanoAug 12, 2006
  3. Junio C HamanoAug 12, 2006
  4. Shawn PearceAug 12, 2006
  5. Fredrik KuivinenAug 12, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.