'snap run --shell snap.hello-world.env' tries to read /snap/snap/current
Bug #1648478 reported by
Jamie Strandboge
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
Low
|
Unassigned |
Bug Description
If I invoke snap run --shell accidentally with 'snap.' I get a confusing error message:
$ snap run --shell snap.hello-
error: cannot find current revision for snap snap: readlink /snap/snap/current: no such file or directory
snappy correctly bailed but I think the message could be improved with a little input validation. Perhaps check if the specified command meets the regex for $SNAP_NAME.$COMMAND and then if it doesn't, output:
$ snap run --shell snap.hello-
error: could not find 'snap.hello-
or something similar.
description: | updated |
To post a comment you must log in.
This is still happening as Jamie described. I think it is a papercut, marking the bug as such.