mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Don't write flutter stderr to output
Add to the extension thrown if it fails instead.
This commit is contained in:
parent
83296e74a1
commit
19ad6528e8
@ -138,8 +138,9 @@ Future<void> _getPackages() async {
|
||||
'get'
|
||||
];
|
||||
final Process process = await processManager.start(command);
|
||||
process.stderr.transform(utf8.decoder).listen(print);
|
||||
final StringBuffer errorOutput = new StringBuffer();
|
||||
process.stderr.transform(utf8.decoder).listen(errorOutput.write);
|
||||
final int exitCode = await process.exitCode;
|
||||
if (exitCode != 0)
|
||||
throw new Exception('flutter packages get failed');
|
||||
throw new Exception('flutter packages get failed: ${errorOutput.toString()}');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user