From 44a33c020c7514c4e72c0feb300850a8f619ee29 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Wed, 10 Oct 2018 13:57:21 +0200 Subject: [PATCH] Clearer error message when failing to load theme.toml --- CHANGELOG.md | 1 + components/config/src/theme.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88e7a478..653c3e93 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Syntax highlighting default was mistakenly `true`, it has been set to `false` - Add NO_COLOR and CLICOLOR support for having colours or not in CLI output - Fix `robots.txt`template not being used +- RSS feed now takes all available articles by default instead of limiting to 10000 ## 0.4.2 (2018-09-03) diff --git a/components/config/src/theme.rs b/components/config/src/theme.rs index 9d4c5ada..468c3585 100644 --- a/components/config/src/theme.rs +++ b/components/config/src/theme.rs @@ -44,7 +44,11 @@ impl Theme { pub fn from_file(path: &PathBuf) -> Result { let mut content = String::new(); File::open(path) - .chain_err(|| "No `theme.toml` file found. Are you in the right directory?")? + .chain_err(|| + "No `theme.toml` file found. \ + Is the `theme` defined in your `config.toml present in the `themes` directory \ + and does it have a `theme.toml` inside?" + )? .read_to_string(&mut content)?; Theme::parse(&content)