fixup: dont panic on errors

This commit is contained in:
dignifiedquire
2019-08-16 12:44:21 +02:00
committed by holger krekel
parent b2a6876a50
commit 64a0718032

View File

@@ -504,7 +504,9 @@ pub unsafe fn dc_kml_parse(
Ok(quick_xml::events::Event::End(ref e)) => kml_endtag_cb(e, &mut kml),
Ok(quick_xml::events::Event::Text(ref e)) => kml_text_cb(e, &mut kml, &reader),
Err(e) => {
panic!(
error!(
context,
0,
"Location parsing: Error at position {}: {:?}",
reader.buffer_position(),
e