From 64a07180323fe6e29f6ddb39bae8aab65e4ed405 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 16 Aug 2019 12:44:21 +0200 Subject: [PATCH] fixup: dont panic on errors --- src/dc_location.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dc_location.rs b/src/dc_location.rs index d67c94b6e..5c15c1ca5 100644 --- a/src/dc_location.rs +++ b/src/dc_location.rs @@ -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