From e3d137a4a9b59c61f3f2b31cc52ca22a673e9504 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 3 May 2012 01:24:21 +0200 Subject: [PATCH] Fix gpx utilties to log exception --- OsmAnd/src/net/osmand/GPXUtilities.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/GPXUtilities.java b/OsmAnd/src/net/osmand/GPXUtilities.java index beb9d6256b..f854b266e6 100644 --- a/OsmAnd/src/net/osmand/GPXUtilities.java +++ b/OsmAnd/src/net/osmand/GPXUtilities.java @@ -500,12 +500,15 @@ public class GPXUtilities { } res.points.clear(); } + } catch (RuntimeException e) { + log.error("Error reading gpx", e); //$NON-NLS-1$ + res.warning = ctx.getString(R.string.error_reading_gpx) + " " + e.getMessage(); } catch (XmlPullParserException e) { log.error("Error reading gpx", e); //$NON-NLS-1$ - res.warning = ctx.getString(R.string.error_reading_gpx); + res.warning = ctx.getString(R.string.error_reading_gpx) + " " + e.getMessage(); } catch (IOException e) { log.error("Error reading gpx", e); //$NON-NLS-1$ - res.warning = ctx.getString(R.string.error_reading_gpx); + res.warning = ctx.getString(R.string.error_reading_gpx) + " " + e.getMessage(); } return res;