From 9653ce02042507c40d353867f9b77e0a98b33d31 Mon Sep 17 00:00:00 2001 From: fr3ts0n Date: Wed, 20 Dec 2017 21:34:04 +0100 Subject: [PATCH] Fix #43: Correct error handler in FileHelper Exception caused in exception handler --- src/com/fr3ts0n/ecu/gui/androbd/FileHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/fr3ts0n/ecu/gui/androbd/FileHelper.java b/src/com/fr3ts0n/ecu/gui/androbd/FileHelper.java index 368a4ab4..ab9ba654 100644 --- a/src/com/fr3ts0n/ecu/gui/androbd/FileHelper.java +++ b/src/com/fr3ts0n/ecu/gui/androbd/FileHelper.java @@ -223,8 +223,8 @@ public synchronized int loadData(final Uri uri) Toast.makeText(context, context.getString(R.string.loaded).concat(" ").concat(msg), Toast.LENGTH_SHORT).show(); } catch (Exception ex) { - Toast.makeText(context, ex.getLocalizedMessage(), Toast.LENGTH_SHORT).show(); - Log.e(context.getString(R.string.load), ex.getMessage()); + Toast.makeText(context, ex.toString(), Toast.LENGTH_SHORT).show(); + Log.e(context.getString(R.string.load), uri.toString(), ex); } return numBytesLoaded; }