From f68437aa50c15bc8d2958589fdc4f38c1a79a38c Mon Sep 17 00:00:00 2001 From: Samuel Tardieu Date: Tue, 9 Sep 2014 13:49:17 +0200 Subject: Include exception stack trace in error message --- main/src/cgeo/geocaching/files/GPXParser.java | 4 ++-- main/src/cgeo/geocaching/files/LocalStorage.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src/cgeo/geocaching/files') diff --git a/main/src/cgeo/geocaching/files/GPXParser.java b/main/src/cgeo/geocaching/files/GPXParser.java index aa1a539..1b57908 100644 --- a/main/src/cgeo/geocaching/files/GPXParser.java +++ b/main/src/cgeo/geocaching/files/GPXParser.java @@ -303,7 +303,7 @@ public abstract class GPXParser extends FileParser { } } } catch (final NumberFormatException e) { - Log.w("Failed to parse waypoint's latitude and/or longitude."); + Log.w("Failed to parse waypoint's latitude and/or longitude", e); } } }); @@ -534,7 +534,7 @@ public abstract class GPXParser extends FileParser { cache.setDisabled(!attrs.getValue("available").equalsIgnoreCase("true")); } } catch (final RuntimeException e) { - Log.w("Failed to parse cache attributes."); + Log.w("Failed to parse cache attributes", e); } } }); diff --git a/main/src/cgeo/geocaching/files/LocalStorage.java b/main/src/cgeo/geocaching/files/LocalStorage.java index 2b1206c..6a510d8 100644 --- a/main/src/cgeo/geocaching/files/LocalStorage.java +++ b/main/src/cgeo/geocaching/files/LocalStorage.java @@ -460,7 +460,7 @@ public final class LocalStorage { } } catch (final IOException e) { Log.e("Could not get additional mount points for user content. " + - "Proceeding with external storage only (" + extStorage + ")"); + "Proceeding with external storage only (" + extStorage + ")", e); } finally { IOUtils.closeQuietly(fr); IOUtils.closeQuietly(br); -- cgit v1.1