mirror of
https://github.com/rust-lang/mdBook.git
synced 2025-12-27 07:54:20 -05:00
Merge pull request #2983 from ehuss/serve-bad-html-config
serve: Fix repeated error message when HTML config is invalid
This commit is contained in:
@@ -41,7 +41,6 @@ pub fn rebuild_on_change(
|
||||
|
||||
loop {
|
||||
std::thread::sleep(Duration::new(1, 0));
|
||||
watcher.set_roots(&book);
|
||||
let start = Instant::now();
|
||||
let paths = watcher.scan();
|
||||
let elapsed = start.elapsed().as_secs_f64();
|
||||
@@ -67,6 +66,7 @@ pub fn rebuild_on_change(
|
||||
post_build();
|
||||
}
|
||||
book = b;
|
||||
watcher.set_roots(&book);
|
||||
}
|
||||
Err(e) => error!("failed to load book config: {e:?}"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user