|
@@ -44,7 +44,11 @@ impl Theme { |
|
|
pub fn from_file(path: &PathBuf) -> Result<Theme> { |
|
|
pub fn from_file(path: &PathBuf) -> Result<Theme> { |
|
|
let mut content = String::new(); |
|
|
let mut content = String::new(); |
|
|
File::open(path) |
|
|
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)?; |
|
|
.read_to_string(&mut content)?; |
|
|
|
|
|
|
|
|
Theme::parse(&content) |
|
|
Theme::parse(&content) |
|
|