Skip to content

Commit

Permalink
dont rethrow file watcher errors, just log them at severe level (#3165)
Browse files Browse the repository at this point in the history
Fixes #3150
  • Loading branch information
jakemac53 committed Aug 5, 2021
1 parent 382da20 commit 622c659
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions build_runner/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 2.1.1-dev

- Don't rethrow file watcher errors - instead log at severe level and continue
going. The file watcher implementation should restart automatically as of
package:watcher version `0.9.7+13`.

## 2.1.0

- Add `--log-requests` flag to build daemon.
Expand Down
6 changes: 3 additions & 3 deletions build_runner/lib/src/watcher/graph_watcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ class PackageGraphWatcher {
'Error from directory watcher for package:${w.node.name}\n\n'
'If you see this consistently then it is recommended that '
'you enable the polling file watcher with '
'--use-polling-watcher.');
// ignore: only_throw_errors
throw e;
'--use-polling-watcher.',
e,
s);
}))
.toList();
// Asynchronously complete the `_readyCompleter` once all the watchers
Expand Down
2 changes: 1 addition & 1 deletion build_runner/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: build_runner
version: 2.1.0
version: 2.1.1-dev
description: A build system for Dart code generation and modular compilation.
repository: https://github.com/dart-lang/build/tree/master/build_runner

Expand Down

0 comments on commit 622c659

Please sign in to comment.