| 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 ba0ede4cb489101af78e2904d9626b3b751b1012..e3efa2dd64bc034aaeed4b1e9369c67171a036c1 100644
|
| --- a/pkg/watcher/lib/src/directory_watcher/mac_os.dart
|
| +++ b/pkg/watcher/lib/src/directory_watcher/mac_os.dart
|
| @@ -109,7 +109,7 @@ class _MacOSDirectoryWatcher implements ManuallyClosedDirectoryWatcher {
|
|
|
| void close() {
|
| if (MacOSDirectoryWatcher.logDebugInfo) {
|
| - print("[$_id] watcher is closed");
|
| + print("[$_id] watcher is closed\n${new Chain.current().terse}");
|
| }
|
| if (_watchSubscription != null) _watchSubscription.cancel();
|
| if (_initialListSubscription != null) _initialListSubscription.cancel();
|
| @@ -468,6 +468,10 @@ class _MacOSDirectoryWatcher implements ManuallyClosedDirectoryWatcher {
|
|
|
| /// Emit an error, then close the watcher.
|
| void _emitError(error, StackTrace stackTrace) {
|
| + if (MacOSDirectoryWatcher.logDebugInfo) {
|
| + print("[$_id] emitting error: $error\n" +
|
| + "${new Chain.forTrace(stackTrace).terse}");
|
| + }
|
| _eventsController.addError(error, stackTrace);
|
| close();
|
| }
|
|
|