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

Re: git add / update-cache --add fails.

From
PJPaul Jackson <pj@sgi.com>
Date
Apr 28, 2005, 01:01 UTC
Message-ID
<20050427180143.0447ceaa.pj@sgi.com>
In-Reply-To
<20050427173059.GE22956@pasky.ji.cz>
Petr wrote:
>  	fd = open(path, O_RDONLY);
>  	if (fd < 0) {
> +		fprintf(stderr, "update-cache Error: %s\n", strerror(errno));

It's usually a good idea to indicate which system call you were attempting in such error messages, and if handy, the key argument. Just the errno might not mean much:

> +		fprintf(stderr, "update-cache open(%s) failed: %s\n", path, strerror(errno));
-- 
                  I won't rest till it's the best ...
                  Programmer, Linux Scalability
                  Paul Jackson <pj@engr.sgi.com> 1.650.933.1373, 1.925.600.0401
Previous: Ed L CashinNext: Petr Baudis
Message 11 of 14 in “git add / update-cache --add fails.”
  1. Rhys HardwickApr 25, 2005
  2. Rhys HardwickApr 25, 2005
  3. Rhys HardwickApr 25, 2005
  4. Chris WedgwoodApr 25, 2005
  5. Linus TorvaldsApr 26, 2005
  6. Rhys HardwickApr 26, 2005
  7. Herbert XuApr 27, 2005
  8. Ed L CashinApr 27, 2005
  9. Petr BaudisApr 27, 2005
  10. Ed L CashinApr 27, 2005
  11. Paul JacksonApr 28, 2005
  12. Petr BaudisApr 28, 2005
  13. Paul JacksonApr 28, 2005
  14. Junio C HamanoApr 26, 2005

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.