location: don't ignore KML parsing errors

This commit is contained in:
link2xt
2022-07-03 14:43:31 +00:00
parent 7598c50dba
commit ece5eb065a
3 changed files with 25 additions and 24 deletions

View File

@@ -1038,7 +1038,7 @@ impl MimeMessage {
// XXX what if somebody sends eg an "location-highlights.kml"
// attachment unrelated to location streaming?
if filename.starts_with("location") || filename.starts_with("message") {
let parsed = location::Kml::parse(context, decoded_data)
let parsed = location::Kml::parse(decoded_data)
.map_err(|err| {
warn!(context, "failed to parse kml part: {}", err);
})