[flutter_tools] Handle errors on the std{out,err}.done future#51660
[flutter_tools] Handle errors on the std{out,err}.done future#51660fluttergithubbot merged 1 commit intoflutter:masterfrom zanderso:stdio-zone
Conversation
jonahwilliams
left a comment
There was a problem hiding this comment.
LGTM with nits
For my own understanding: something goes wrong (like a broken pipe?) and stdout and/or stderr signal this by completing done with an exception. If we write to them after this point, we get a different exception?
Right, we'd get a |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Description
stdoutandstderrcan put errors on their respectivedonefutures. This PR catches those errors to avoid the tool crashing on a write tostdoutorstderr.Related Issues
Crash seen in crash logging.
Tests
I added the following tests:
Added a test
logger_test.dartBreaking Change
Did any tests fail when you ran them? Please read [Handling breaking changes].