atom/settings-view

Better error message when attempting to install a package when network is unavailable

Tails128 opened this issue · 1 comments

Prerequisites

Description

While the connection's off, an error message is sent. Atom should display a connection message as: "connection not available" in order to be more readable.

Steps to Reproduce

  1. Disconnect
  2. settings > install package

Expected behavior: I expect to see a "connection not available message displayed instead of the packages"

Actual behavior: red error popup (t is not iterable)

Reproduces how often: [What percentage of the time does it reproduce?] 100%

Versions

Atom: 1.32.2
Apm: 2.1.2
OS: debian scratch

Additional Information

The bug should be os independent

rsese commented

Thanks for contributing!

Not sure if you had the whole stack trace available but based on the error message you mentioned and the description of the problem, I think this is basically a duplicate of #962. You can subscribe there for updates if you'd like and also see the open pull request meant to fix that issue /cc #1034 - the Alternate Designs section mentions your expected behavior as a future possibility to consider.


Because we treat our issues list as the Atom team's backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn't an exact duplicate but is closely related.

For information on how to use GitHub's search feature to find out if something is a duplicate before filing, see the How Can I Contribute? section of the Atom CONTRIBUTING guide.