| Index: pkg/watcher/lib/src/directory_watcher/mac_os.dart
|
| diff --git a/pkg/watcher/lib/src/directory_watcher/mac_os.dart b/pkg/watcher/lib/src/directory_watcher/mac_os.dart
|
| index 9d3660df7b2408351ad0cc2f4e6fa7c01f33eb36..5b1feb342f2a220316c339af1e01dd8a3f6eba23 100644
|
| --- a/pkg/watcher/lib/src/directory_watcher/mac_os.dart
|
| +++ b/pkg/watcher/lib/src/directory_watcher/mac_os.dart
|
| @@ -13,8 +13,6 @@ import '../utils.dart';
|
| import '../watch_event.dart';
|
| import 'resubscribable.dart';
|
|
|
| -import 'package:path/path.dart' as p;
|
| -
|
| /// Uses the FSEvents subsystem to watch for filesystem events.
|
| ///
|
| /// FSEvents has two main idiosyncrasies that this class works around. First, it
|
| @@ -337,7 +335,7 @@ class _MacOSDirectoryWatcher implements ManuallyClosedDirectoryWatcher {
|
|
|
| /// Emit an error, then close the watcher.
|
| void _emitError(error, StackTrace stackTrace) {
|
| - _eventsController.add(error, stackTrace);
|
| + _eventsController.addError(error, stackTrace);
|
| close();
|
| }
|
|
|
|
|