From ad6b7137590c2757e5e1891b125ac4058c936061 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Wed, 17 Jul 2019 09:54:44 +0200 Subject: [PATCH] Do not use serve remove dir result Closes #752 --- CHANGELOG.md | 4 ++-- src/cmd/serve.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26011827..3b453ed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 7b1627f8..f49eca93 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -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");