We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd6fee8 commit fc89aeeCopy full SHA for fc89aee
coinlib/bin/util.dart
@@ -29,10 +29,10 @@ Future<int> execWithStdio(
29
await process.stdin.close();
30
}
31
32
- // Pipe stdout to terminal and discard stderr
+ // Pipe stdout and stderr to terminal
33
await Future.wait([
34
- process.stdout.transform(utf8.decoder).forEach(stdout.write),
35
- process.stderr.drain<String?>(),
+ for (final stream in [process.stdout, process.stderr])
+ stream.transform(utf8.decoder).forEach(stdout.write),
36
]);
37
38
return await process.exitCode;
0 commit comments