Adapt libimagrt to new error handling
This commit is contained in:
parent
6dd24f3da3
commit
503b042690
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue