All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Jackson <pj@sgi.com>
To: Petr Baudis <pasky@ucw.cz>
Cc: ecashin@coraid.com, git@vger.kernel.org
Subject: Re: git add / update-cache --add fails.
Date: Wed, 27 Apr 2005 18:01:43 -0700	[thread overview]
Message-ID: <20050427180143.0447ceaa.pj@sgi.com> (raw)
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

  parent reply	other threads:[~2005-04-28  0:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 21:26 git add / update-cache --add fails Rhys Hardwick
2005-04-25 21:50 ` Rhys Hardwick
2005-04-25 21:52 ` Rhys Hardwick
2005-04-25 22:09   ` Chris Wedgwood
2005-04-26  0:47   ` Linus Torvalds
2005-04-26  6:26     ` Rhys Hardwick
2005-04-27  2:35       ` Herbert Xu
2005-04-27 16:48         ` Ed L Cashin
2005-04-27 17:30           ` Petr Baudis
2005-04-27 17:38             ` Ed L Cashin
2005-04-28  1:01             ` Paul Jackson [this message]
2005-04-28  1:05               ` Petr Baudis
2005-04-28  1:20                 ` Paul Jackson
2005-04-26  1:38   ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050427180143.0447ceaa.pj@sgi.com \
    --to=pj@sgi.com \
    --cc=ecashin@coraid.com \
    --cc=git@vger.kernel.org \
    --cc=pasky@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.