Adapt streams for additional stackTrace argument. R=lrn@google.com Review URL: https://codereview.chromium.org//25094002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/watcher@28511 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/pkgs/watcher/lib/src/directory_watcher.dart b/pkgs/watcher/lib/src/directory_watcher.dart index 16a5cf1..3b39f5a 100644 --- a/pkgs/watcher/lib/src/directory_watcher.dart +++ b/pkgs/watcher/lib/src/directory_watcher.dart
@@ -133,11 +133,11 @@ if (entity is! File) return; _filesToProcess.add(entity.path); - }, onError: (error) { + }, onError: (error, StackTrace stackTrace) { 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