| Index: sdk/lib/io/common.dart
|
| diff --git a/sdk/lib/io/common.dart b/sdk/lib/io/common.dart
|
| index 3f8c5503bebe7dc32c3b488c05039f98f83f6422..38fa76da9d0670d0fbdaab0b55d1706512b77fc8 100644
|
| --- a/sdk/lib/io/common.dart
|
| +++ b/sdk/lib/io/common.dart
|
| @@ -28,17 +28,17 @@ class OSError {
|
| /** Converts an OSError object to a string representation. */
|
| String toString() {
|
| StringBuffer sb = new StringBuffer();
|
| - sb.add("OS Error");
|
| + sb.write("OS Error");
|
| if (!message.isEmpty) {
|
| - sb.add(": ");
|
| - sb.add(message);
|
| + sb.write(": ");
|
| + sb.write(message);
|
| if (errorCode != noErrorCode) {
|
| - sb.add(", errno = ");
|
| - sb.add(errorCode.toString());
|
| + sb.write(", errno = ");
|
| + sb.write(errorCode.toString());
|
| }
|
| } else if (errorCode != noErrorCode) {
|
| - sb.add(": errno = ");
|
| - sb.add(errorCode.toString());
|
| + sb.write(": errno = ");
|
| + sb.write(errorCode.toString());
|
| }
|
| return sb.toString();
|
| }
|
|
|