| Index: sdk/lib/io/directory_impl.dart
|
| diff --git a/sdk/lib/io/directory_impl.dart b/sdk/lib/io/directory_impl.dart
|
| index 46b17dc67d615e67efeedf386508181d6b9b1a3e..f450cb624d35d14e2d880f1d28460e5489758482 100644
|
| --- a/sdk/lib/io/directory_impl.dart
|
| +++ b/sdk/lib/io/directory_impl.dart
|
| @@ -286,8 +286,8 @@ class _AsyncDirectoryLister {
|
| if (response is int) {
|
| id = response;
|
| next();
|
| - } else if (response is Error) {
|
| - controller.addError(response);
|
| + } else if (response is Error) {
|
| + controller.addError(response, response.stackTrace);
|
| close();
|
| } else {
|
| error(response);
|
| @@ -379,8 +379,8 @@ class _AsyncDirectoryLister {
|
| if (errorPath == null) errorPath = path;
|
| controller.addError(
|
| new FileSystemException("Directory listing failed",
|
| - errorPath,
|
| - err));
|
| + errorPath,
|
| + err));
|
| } else {
|
| controller.addError(
|
| new FileSystemException("Internal error"));
|
|
|