| Index: runtime/bin/file_patch.dart
|
| diff --git a/runtime/bin/file_patch.dart b/runtime/bin/file_patch.dart
|
| index 96a5d16692075832272b52890a6c07777eace102..9828687dba2490423e08abdb94cbe84b5d225c5f 100644
|
| --- a/runtime/bin/file_patch.dart
|
| +++ b/runtime/bin/file_patch.dart
|
| @@ -70,10 +70,10 @@ class _FileSystemWatcherImpl
|
| try {
|
| socketId = _watchPath(_path, _events, identical(true, _recursive));
|
| } catch (e) {
|
| - throw new FileSystemException(
|
| - "Failed to watch path",
|
| - _path,
|
| - e);
|
| + _controller.addError(new FileSystemException(
|
| + "Failed to watch path", _path, e));
|
| + _controller.close();
|
| + return;
|
| }
|
| var socket = new _RawSocket(new _NativeSocket.watch(socketId));
|
| _subscription = socket.expand((event) {
|
|
|