history and status error message for a snap not pushed is not good

Bug #1636972 reported by Leo Arias
12
This bug affects 1 person
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 'y8gqFXGKAfN5NoZtNRZHqWhB1C4jt3Gi' for 'any arch' in '16' series: Snap not found.
elopio@ubuntu-xenial:~/waf/demos/asm$ snapcraft status u1test20161026
Error fetching status of snap id 'y8gqFXGKAfN5NoZtNRZHqWhB1C4jt3Gi' for 'any arch' in '16' series: Snap not found.

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.

Tags: store ui
Leo Arias (elopio)
tags: added: store
Revision history for this message
Leo Arias (elopio) wrote :

The history command, or `list-revisions` as it's now called has been fixed:

$ /home/ubuntu/workspace/canonical/snapcraft/bin/snapcraft list-revisions u1test20161006
Rev. Uploaded Arch Version Channels
1 2016-10-06T06:30:37Z Arch: All 0.1 -

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.

tags: added: ui
Changed in snapcraft:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.