Skip to content

Commit add7ac4

Browse files
committed
Improve error recovery when serving
1 parent 9b36cee commit add7ac4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/build.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ pub async fn watch_build<P: AsRef<Path>>(source: P, dest: P, watch: bool) -> Res
4747

4848
loop {
4949
match rx.recv() {
50-
Ok(_) => build(&mut engine, true)?,
50+
Ok(_) => {
51+
if let Err(err) = build(&mut engine, true) {
52+
println!("build error: {:?}", &err);
53+
}
54+
}
5155
Err(err) => println!("watch error: {:?}", &err),
5256
}
5357
}

0 commit comments

Comments
 (0)