From c27f749a864302e9167214cf792c96a2059740c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Wed, 16 Sep 2020 12:55:41 +0200 Subject: [PATCH] Fix #1165, improve situation for compile_sass errors (#1166) * Update compile_sass docs, this is just for sass files in site root * Improve file watch error, question whether the target exists --- docs/content/documentation/getting-started/configuration.md | 3 ++- src/cmd/serve.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/content/documentation/getting-started/configuration.md b/docs/content/documentation/getting-started/configuration.md index c76696af..96ad924f 100644 --- a/docs/content/documentation/getting-started/configuration.md +++ b/docs/content/documentation/getting-started/configuration.md @@ -82,7 +82,8 @@ taxonomies = [] # languages = [] -# When set to "true", the Sass files in the `sass` directory are compiled. +# When set to "true", the Sass files in the `sass` directory in the site root are compiled. +# Sass files in theme directories are always compiled. compile_sass = false # A list of glob patterns specifying asset files to ignore when the content diff --git a/src/cmd/serve.rs b/src/cmd/serve.rs index 9c2aa29d..654fb374 100644 --- a/src/cmd/serve.rs +++ b/src/cmd/serve.rs @@ -255,7 +255,7 @@ pub fn serve( if should_watch { watcher .watch(root_dir.join(entry), RecursiveMode::Recursive) - .map_err(|e| ZolaError::chain(format!("Can't watch `{}` for changes in folder `{}`. Do you have correct permissions?", entry, root_dir.display()), e))?; + .map_err(|e| ZolaError::chain(format!("Can't watch `{}` for changes in folder `{}`. Does it exist, and do you have correct permissions?", entry, root_dir.display()), e))?; watchers.push(entry.to_string()); } }