Skip to content

Commit

Permalink
Improve error recovery when serving
Browse files Browse the repository at this point in the history
  • Loading branch information
plule committed Nov 28, 2022
1 parent 9b36cee commit add7ac4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ pub async fn watch_build<P: AsRef<Path>>(source: P, dest: P, watch: bool) -> Res

loop {
match rx.recv() {
Ok(_) => build(&mut engine, true)?,
Ok(_) => {
if let Err(err) = build(&mut engine, true) {
println!("build error: {:?}", &err);
}
}
Err(err) => println!("watch error: {:?}", &err),
}
}
Expand Down

0 comments on commit add7ac4

Please sign in to comment.