Issue a warning instead of dying when a partition target does not exist

This commit is contained in:
Lucien Greathouse
2018-11-12 21:45:28 -08:00
parent c5abc87dbd
commit 71b1320aa8

View File

@@ -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;
},
}