diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2022-08-10 21:13:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 21:13:53 +0200 |
commit | d0ffa0beb52679ddfc90ccc03e27572337db79dc (patch) | |
tree | 078f0fe754f894847c57137b7297321b4348a9a7 /cli/file_watcher.rs | |
parent | 08061b60d9be2b6990d1134aa5b94ec36f9266aa (diff) |
fix(permissions): ignore empty values (#15447)
Diffstat (limited to 'cli/file_watcher.rs')
-rw-r--r-- | cli/file_watcher.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/file_watcher.rs b/cli/file_watcher.rs index 0f9f7d1ff..c5a92e5bf 100644 --- a/cli/file_watcher.rs +++ b/cli/file_watcher.rs @@ -261,7 +261,7 @@ pub async fn watch_func2<T: Clone, O, F>( print_config: PrintConfig, ) -> Result<(), AnyError> where - O: FnMut(T) -> F, + O: FnMut(T) -> Result<F, AnyError>, F: Future<Output = Result<(), AnyError>>, { let (watcher_sender, mut watcher_receiver) = @@ -306,7 +306,7 @@ where add_paths_to_watcher(&mut watcher, &maybe_paths.unwrap()); } }; - let operation_future = error_handler(operation(operation_args.clone())); + let operation_future = error_handler(operation(operation_args.clone())?); select! { _ = receiver_future => {}, |