Browse Source

Clearer error message when failing to load theme.toml

index-subcmd
Vincent Prouillet 6 years ago
parent
commit
44a33c020c
2 changed files with 6 additions and 1 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +5
    -1
      components/config/src/theme.rs

+ 1
- 0
CHANGELOG.md View File

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



+ 5
- 1
components/config/src/theme.rs View File

@@ -44,7 +44,11 @@ impl Theme {
pub fn from_file(path: &PathBuf) -> Result<Theme> {
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)


Loading…
Cancel
Save