git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* More noise when parsing ref args?
@ 2009-02-07 15:48 Jan Krüger
  0 siblings, 0 replies; only message in thread
From: Jan Krüger @ 2009-02-07 15:48 UTC (permalink / raw)
  To: Git ML

Good day,

I heard a (quite valid) complaint on IRC about a confusing error
message. The command used was "git show <commit>:foo", where foo was a
working tree file in the CWD (a non-toplevel dir of the repository).
Obviously this couldn't have worked but the error message was the usual
"ambiguous argument" message output by verify_filename(). That message
doesn't really make clear the fact that the commit object was found but
the path wasn't. It's easy for someone with less experience to read the
message as "either the <commit> or the path suffix you gave was wrong".

It would be great adding another message that points out what exactly
went wrong in looking up the object, but that message would then appear
in plumbing. So what's the policy on adding new error messages to
plumbing? If it's a bad idea: I remember that a couple of months ago
some error handling code was changed to allow overloading messages from
porcelain. Can that be extended with a reasonable amount of effort?

-Jan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-07 15:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07 15:48 More noise when parsing ref args? Jan Krüger

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).