| Index: sdk/lib/io/common.dart
|
| diff --git a/sdk/lib/io/common.dart b/sdk/lib/io/common.dart
|
| index ba5f07d9908b39f1ef811a97624ec53c3b1ac38d..6ae39cf3b81778609f44b8aee11742e72a8b5689 100644
|
| --- a/sdk/lib/io/common.dart
|
| +++ b/sdk/lib/io/common.dart
|
| @@ -23,7 +23,7 @@ bool _isErrorResponse(response) {
|
| /**
|
| * Returns an Exception or an Error
|
| */
|
| -_exceptionFromResponse(response, String message) {
|
| +_exceptionFromResponse(response, String message, String path) {
|
| assert(_isErrorResponse(response));
|
| switch (response[_ERROR_RESPONSE_ERROR_TYPE]) {
|
| case _ILLEGAL_ARGUMENT_RESPONSE:
|
| @@ -31,9 +31,9 @@ _exceptionFromResponse(response, String message) {
|
| case _OSERROR_RESPONSE:
|
| var err = new OSError(response[_OSERROR_RESPONSE_MESSAGE],
|
| response[_OSERROR_RESPONSE_ERROR_CODE]);
|
| - return new FileException(message, err);
|
| + return new FileException(message, path, err);
|
| case _FILE_CLOSED_RESPONSE:
|
| - return new FileException("File closed");
|
| + return new FileException("File closed", path);
|
| default:
|
| return new Exception("Unknown error");
|
| }
|
|
|