Chromium Code Reviews| Index: sdk/lib/io/file_impl.dart |
| diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart |
| index 27bace995b50e412281ca066dbcb67b349dc88fc..8e826aaeba28de179dab043c92098386f880821f 100644 |
| --- a/sdk/lib/io/file_impl.dart |
| +++ b/sdk/lib/io/file_impl.dart |
| @@ -357,7 +357,7 @@ class _File extends _FileBase implements File { |
| // Constructor for file. |
| _File(String this._name) { |
| if (_name is! String) { |
| - throw new ArgumentError('${NoSuchMethodError.safeToString(_name)} ' |
| + throw new ArgumentError('${Error.safeToString(_name)} ' |
| 'is not a String'); |
| } |
| } |