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
This commit is contained in:
Tim Visée 2020-09-16 12:55:41 +02:00 committed by Vincent Prouillet
parent f7cd28c8d2
commit c27f749a86
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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());
}
}