From: Paul Jackson Date: Thu, 28 Apr 2005 01:01:43 GMT Subject: Re: git add / update-cache --add fails. 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 1.650.933.1373, 1.925.600.0401