Re: git add / update-cache --add fails.
- From
- Paul 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