Index: sdk/lib/io/string_transformer.dart |
diff --git a/sdk/lib/io/string_transformer.dart b/sdk/lib/io/string_transformer.dart |
index 4a70f44532d4d435fad70fae6d81c84204072b44..33328799a5e5b50a71c7af526ef24fbcf8dc7160 100644 |
--- a/sdk/lib/io/string_transformer.dart |
+++ b/sdk/lib/io/string_transformer.dart |
@@ -315,9 +315,7 @@ abstract class _SingleByteEncoder |
void handleData(String data, EventSink<List<int>> sink) { |
var bytes = _encode(data); |
if (bytes == null) { |
- sink.addError( |
- new AsyncError( |
- new FormatException("Invalid character for encoding"))); |
+ sink.addError(new FormatException("Invalid character for encoding")); |
sink.close(); |
} else { |
sink.add(bytes); |