Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: sdk/lib/io/directory_impl.dart

Issue 1010403002: Ensure that stack traces are propagated more often in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tab to space Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"));
« no previous file with comments | « no previous file | sdk/lib/io/file_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698