mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Add EBADF errno to list of ignorable errors in terminal.dart (#13077)
I get this error when piping an `echo` string to the stdin of the flutter tool. https://github.com/dart-lang/sdk/issues/29083
This commit is contained in:
parent
cd54bd39ab
commit
928d2cc764
@ -25,6 +25,7 @@ class AnsiTerminal {
|
|||||||
static const String _reset = '\u001B[0m';
|
static const String _reset = '\u001B[0m';
|
||||||
static const String _clear = '\u001B[2J\u001B[H';
|
static const String _clear = '\u001B[2J\u001B[H';
|
||||||
|
|
||||||
|
static const int _EBADF = 9;
|
||||||
static const int _ENXIO = 6;
|
static const int _ENXIO = 6;
|
||||||
static const int _ENOTTY = 25;
|
static const int _ENOTTY = 25;
|
||||||
static const int _ENETRESET = 102;
|
static const int _ENETRESET = 102;
|
||||||
@ -33,6 +34,7 @@ class AnsiTerminal {
|
|||||||
/// Setting the line mode can throw for some terminals (with "Operation not
|
/// Setting the line mode can throw for some terminals (with "Operation not
|
||||||
/// supported on socket"), but the error can be safely ignored.
|
/// supported on socket"), but the error can be safely ignored.
|
||||||
static const List<int> _lineModeIgnorableErrors = const <int>[
|
static const List<int> _lineModeIgnorableErrors = const <int>[
|
||||||
|
_EBADF,
|
||||||
_ENXIO,
|
_ENXIO,
|
||||||
_ENOTTY,
|
_ENOTTY,
|
||||||
_ENETRESET,
|
_ENETRESET,
|
||||||
|
Loading…
Reference in New Issue
Block a user