After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 660995 - change the error message on command not found
change the error message on command not found
Status: RESOLVED FIXED
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Jhbuild maintainers
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2011-10-05 16:10 UTC by Dan Winship
Modified: 2011-10-05 17:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
commands: change the error message on command not found (994 bytes, patch)
2011-10-05 16:10 UTC, Dan Winship
committed Details | Review

Description Dan Winship 2011-10-05 16:10:34 UTC
I often will type something like

    jhbuild dconf-editor

to which jhbuild replies:

    jhbuild dconf-editor: command not found

and *sometimes* I parse that correctly and realize I forgot the "run",
but other times I think "oops, I must have forgotten to reinstall that
after installing F16", so I do "sudo yum install dconf-editor", and
then get very confused when yum tells me that it's already installed.

So, here's a suggestion. I don't care about the exact wording (or the
"did you mean" suggestion), as long as it says something other than
what bash says ("command not found").
Comment 1 Dan Winship 2011-10-05 16:10:36 UTC
Created attachment 198352 [details] [review]
commands: change the error message on command not found

to make it more obvious that it's complaining about not finding a
jhbuild sub-command as opposed to a command-line command
Comment 2 Colin Walters 2011-10-05 16:24:47 UTC
Review of attachment 198352 [details] [review]:

Looks OK, though - and I have no data - I think it's a lot more likely for people to typo commands than to forget "run".  Long term I want to encourage people to stay in "jhbuild shell" anyways.

A "did you mean command X" patch would be cool...harder to implement though.  If you want to commit this that's fine, if you want to do the harder one - yay!
Comment 3 Dan Winship 2011-10-05 17:13:55 UTC
committed as-in