Do not use serve remove dir result

Closes #752
This commit is contained in:
Vincent Prouillet 2019-07-17 09:54:44 +02:00
parent 9f46048c0e
commit ad6b713759
2 changed files with 3 additions and 3 deletions

View file

@ -6,8 +6,8 @@
- Fix sitemaps namespace
- Update livereload
- Add `hard_link_static` config option to hard link things in the static directory instead of copying
- Draft pages are not longer rendered in `zola build`
- Add warning for old style internal links since they would still function
- Pages with draft=true are not longer rendered in `zola build`
- Add warning for old style internal links since they would still function silently
- Add some counts to `zola check`
## 0.8.0 (2019-06-22)

View file

@ -272,7 +272,7 @@ pub fn serve(
println!("Press Ctrl+C to stop\n");
// Delete the output folder on ctrl+C
ctrlc::set_handler(move || {
remove_dir_all(&output_path).expect("Failed to delete output directory");
let _ =remove_dir_all(&output_path);
::std::process::exit(0);
})
.expect("Error setting Ctrl-C handler");