Index: runtime/bin/directory_impl.dart |
diff --git a/runtime/bin/directory_impl.dart b/runtime/bin/directory_impl.dart |
index 6d9ad0cc72ff0593191905f98ad7f30ca0945c3a..77730b785a7fa4648f8d67134ad3bb54301eb7e1 100644 |
--- a/runtime/bin/directory_impl.dart |
+++ b/runtime/bin/directory_impl.dart |
@@ -244,9 +244,11 @@ class _DirectoryLister implements DirectoryLister { |
var err = new OSError( |
message[kResponseError][_FileUtils.kOSErrorResponseMessage], |
message[kResponseError][_FileUtils.kOSErrorResponseErrorCode]); |
+ var errorPath = message[kResponsePath]; |
+ if (errorPath == null) errorPath = path; |
_reportError(new DirectoryIOException("Directory listing failed", |
- message[kResponsePath], |
- err)); |
+ errorPath, |
+ err)); |
} else { |
_reportError(new DirectoryIOException("Internal error")); |
} |