Using a watch when the watch element is not there returns an error

Bug #1779768 reported by Sergio Schvezov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Fix Released
Undecided
John Lenton

Bug Description

It would be nice if,

    sudo snap watch --last=auto-refresh

had more of an idempotent use. Today, if nothing is auto-refreshing and error != 0 is returned with a not so nice error message,

    error: no changes of type "auto-refresh" found

whereas if a refresh is ocurring, the watch takes place and a nice message follows.

Another option would be to ask if there is a auto-refresh taking place, that, combined with the use of the refresh.hold property can allow for nicer UI.

Revision history for this message
John Lenton (chipaca) wrote :
Changed in snapd:
assignee: nobody → John Lenton (chipaca)
status: New → In Progress
John Lenton (chipaca)
Changed in snapd:
status: In Progress → Fix Committed
John Lenton (chipaca)
Changed in snapd:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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