From 71b1320aa8ce7d6341863eefdbf8869aeb8a69fd Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 12 Nov 2018 21:45:28 -0800 Subject: [PATCH] Issue a warning instead of dying when a partition target does not exist --- server/src/vfs/vfs_watcher.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/vfs/vfs_watcher.rs b/server/src/vfs/vfs_watcher.rs index 0e7ac27d..19f27882 100644 --- a/server/src/vfs/vfs_watcher.rs +++ b/server/src/vfs/vfs_watcher.rs @@ -83,7 +83,8 @@ impl VfsWatcher { match watcher.watch(&root_path, RecursiveMode::Recursive) { Ok(_) => (), Err(_) => { - panic!("Unable to watch partition {}, with path {}! Make sure that it's a file or directory.", partition_name, root_path.display()); + eprintln!("WARNING: Unable to watch partition {}, with path {}\nMake sure that it's a file or directory.", partition_name, root_path.display()); + continue; }, }