Index: pkg/watcher/lib/src/directory_watcher.dart |
diff --git a/pkg/watcher/lib/src/directory_watcher.dart b/pkg/watcher/lib/src/directory_watcher.dart |
index 16a5cf1c502d329041b25dca26ecefeb8254beca..2a5379f81b2e8802647cc72da35206781bd9bc7c 100644 |
--- a/pkg/watcher/lib/src/directory_watcher.dart |
+++ b/pkg/watcher/lib/src/directory_watcher.dart |
@@ -133,11 +133,11 @@ class DirectoryWatcher { |
if (entity is! File) return; |
_filesToProcess.add(entity.path); |
- }, onError: (error) { |
+ }, onError: (error, [StackTrace stackTrace]) { |
Lasse Reichstein Nielsen
2013/10/04 08:45:17
Not optional. Stream is from io-lib.
floitsch
2013/10/05 18:11:48
Done.
|
if (!isDirectoryNotFoundException(error)) { |
// It's some unknown error. Pipe it over to the event stream so the |
// user can see it. |
- _events.addError(error); |
+ _events.addError(error, stackTrace); |
} |
// When an error occurs, we end the listing normally, which has the |