Invoking juju with no verb but a path results in confusing error messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Medium
|
Nam Nguyen |
Bug Description
So, running juju with an invalid verb gives you a reasonable error message:
$ juju foo
ERROR unrecognized command: juju foo
Running it with an invalid verb that can be interpreted as a path gives you an error message that's less obvious:
$ juju /foo
ERROR fork/exec juju-/foo: no such file or directory
Even when the path does in fact exist:
$ ls
collect manifest services
$ juju ./services
ERROR fork/exec juju-./services: no such file or directory
I'm assuming this is because it tries to interpret unknown verbs as plugins but I typoed a command and spent quite some time trying to figure out why it claimed it couldn't access a file that I could clearly see on the file system, had no permissions problems, etc. Even updating the error message to refer to no such plugin or something along those lines would be helpful in pointing people in the right direction in this situation.
tags: | added: bitesize cli ui |
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju: | |
assignee: | nobody → Nam Nguyen (nammn) |
Changed in juju: | |
status: | Triaged → Fix Committed |
milestone: | none → 2.7-beta1 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Ah, this is with 2.3.2, forgot to add that.