git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Buglet] "git show <random-40-hexdigit>" gives an unclear error message
@ 2011-03-11 18:28 Junio C Hamano
  2011-03-14 15:11 ` [PATCH] revision.c: Clarify error message for missing objects Jakob Pfender
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2011-03-11 18:28 UTC (permalink / raw)
  To: git

Here is one who wants to tackle potentially a low-hanging fruit.

  $ git cat-file -p 4cd96ce446ab653325a0e47fad73e94c99c57dd2
  error: unable to find 4cd96ce446ab653325a0e47fad73e94c99c57dd2
  fatal: Not a valid object name 4cd96ce446ab653325a0e47fad73e94c99c57dd2

This looks sensible and understandable, even though you could argue that
we don't have to say the same thing twice.  In the same repository:

  $ git show 4cd96ce446ab653325a0e47fad73e94c99c57dd3
  fatal: bad object 4cd96ce446ab653325a0e47fad73e94c99c57dd3

This is bad, as it sounds as if we found the named object but it is
corrupt.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-14 17:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 18:28 [Buglet] "git show <random-40-hexdigit>" gives an unclear error message Junio C Hamano
2011-03-14 15:11 ` [PATCH] revision.c: Clarify error message for missing objects Jakob Pfender
2011-03-14 17:40   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).