Adapt libimagrt to new error handling

This commit is contained in:
Matthias Beyer 2018-02-08 15:10:14 +01:00
parent 6dd24f3da3
commit 503b042690
2 changed files with 3 additions and 1 deletions

View file

@ -89,6 +89,7 @@ pub fn fetch_config(searchpath: &PathBuf) -> Result<Value> {
.unwrap_or_else(|| String::from("Line unknown, Column unknown"));
let _ = write!(stderr(), "Config file parser error at {}", line_col);
let e : RE = RE::from(e);
trace_error(&e);
None
})

View file

@ -23,7 +23,8 @@ error_chain! {
}
foreign_links {
TomlError(::toml_query::error::Error);
TomlDeError(::toml::de::Error);
TomlQueryError(::toml_query::error::Error);
HandlebarsTemplateError(::handlebars::TemplateError);
}