Skip to content

Commit

Permalink
Merge pull request #409 from datanel/upgrade-minidom
Browse files Browse the repository at this point in the history
upgrade minidom
  • Loading branch information
mergify[bot] authored Oct 14, 2019
2 parents 81e7ecd + 4e70b2c commit 26858fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ geo-types = "0.4"
iso4217 = "0.3"
lazy_static = "1.2"
log = "0.4"
minidom = "0.9"
minidom = "0.11"
num-traits = "0.2"
pretty_assertions = "0.6"
proj = { version = "0.10", optional = true }
Expand Down
8 changes: 7 additions & 1 deletion src/hellogo_fares/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,13 @@ pub fn enrich_with_hellogo_fares<P: AsRef<Path>>(
info!("reading fares file {:?}", zip_file.sanitized_name());
let mut file_content = String::new();
zip_file.read_to_string(&mut file_content)?;
let root: Element = file_content.parse()?;
let root: Element = file_content.parse().map_err(|e| {
format_err!(
"failed to parse file '{:?}': {}",
zip_file.sanitized_name(),
e
)
})?;
load_netex_fares(collections, &root)?;
}
_ => {
Expand Down

0 comments on commit 26858fb

Please sign in to comment.