Skip to content

Conversation

@DanTup
Copy link
Contributor

@DanTup DanTup commented Jul 10, 2018

This should make it more obvious from the error what's gone wrong if we see a repeat of #19096 (previously the error was something like "Bad state: future already completed").

See #19096 (comment)

This should make it more obvious from the error what's gone wrong if we see a repeat of #19096 (previously the error was something like "Bad state: future already completed").
@Hixie
Copy link
Contributor

Hixie commented Jul 10, 2018

nice! thanks

// https://github.com/flutter/flutter/issues/19096#issuecomment-402756549
if (resultsHaveBeenParsed) {
throw 'Additional JSON was received after results has already been '
'processed. This suggests the `flutter run` process may have lived '
Copy link
Contributor

Choose a reason for hiding this comment

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

minor nit: please try to keep expressions vertically aligned (so in this case, making the leading apostrophes all be in the same vertical column); it makes reading the code much easier (because you can tell at a glance that it's one expression and how they nest).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense - thanks! I updated here -> #19256

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants