Commit 19ad6528 authored by Danny Tuppeny's avatar Danny Tuppeny Committed by Danny Tuppeny

Don't write flutter stderr to output

Add to the extension thrown if it fails instead.
parent 83296e74
......@@ -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()}');
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment