Skip to content

Conversation

@shiftkey
Copy link
Member

@shiftkey shiftkey commented Sep 20, 2017

This was introduced in #2407 as fallback behaviour where we hadn't implemented a way to resolve available editors on an given platform.

Unfortunately in #2611 these checks were now performed in AppStore.loadInitialState(), so the error wasn't handled which meant it would fail before it had a chance to show some UI about the error.

For now I've swapped this out to a warning and empty list, which has the same result but with 100% less crashing.

There's also some unused code in here that I've 🔥d.

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 20, 2017
}

return Promise.reject(
log.warn(

This comment was marked as spam.

Copy link
Contributor

@joshaber joshaber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch 👍

@joshaber joshaber merged commit 0181d41 into master Sep 21, 2017
@joshaber joshaber deleted the dont-crash-the-launch-process branch September 21, 2017 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants