Fix compilation failure

This commit is contained in:
Will Crichton 2022-11-12 14:23:05 -08:00
parent b1ca805d2a
commit 8b486dfc71
1 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,10 @@ where
for dir in &book.config.build.extra_watch_dirs {
let path = dir.canonicalize().unwrap();
if let Err(e) = watcher.watch(&path, Recursive) {
error!("Error while watching extra directory {path:?}:\n {e:?}");
error!(
"Error while watching extra directory {:?}:\n {:?}",
path, e
);
std::process::exit(1);
}
}