snapcraft.io
snapcraft.io copied to clipboard
No API error handling on /store categories
Expected behaviour
If API fails for any reason (cache, network, etc) it would be nice to have some error handling - not show category at all, show error, or something. Currently it renders empty category with 'undefined' in place of snaps:
I would u-hide the entire category, assuming that some appear
@bartaz maybe some kind of reload button since this call is made from the browser?
Reload can be done from browser.
As Peter suggests, I think it would be fine just to hide category that failed - of course assuming other are displayed. If everything fails some error message would be good.