history and status error message for a snap not pushed is not good
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When I try to get the history and status for a snap that I haven't pushed yet, I get the following error message:
$ snapcraft history u1test20161026
Error fetching history of snap id 'y8gqFXGKAfN5No
elopio@
Error fetching status of snap id 'y8gqFXGKAfN5No
The error is not user friendly. First, it uses the snap id instead of the name. Then 'any arch' in quotes makes it clear that this case doesn't fit nicely in the template. And finally, it says "'16' series" which sounds weird to me. I think it's better to say "series 16" instead.
In this case, I registered the snap but have not pushed yet. So a message saying that would be better. Something like: You haven't pushed any revisions for <snapname>. You can try pushing one to the edge channel with snapcraft push <snap path> --edge.
The history command, or `list-revisions` as it's now called has been fixed:
$ /home/ubuntu/ workspace/ canonical/ snapcraft/ bin/snapcraft list-revisions u1test20161006 06T06:30: 37Z Arch: All 0.1 -
Rev. Uploaded Arch Version Channels
1 2016-10-
The status command has been broken in a different way:
$ /home/ubuntu/ workspace/ canonical/ snapcraft/ bin/snapcraft status u1test20161006
Track Arch Channel Version Revision
I will close this bug, and I have reported https:/ /bugs.launchpad .net/snapcraft/ +bug/1695241 for the status problem.