Skip to content

Commit

Permalink
Fix #43: Correct error handler in FileHelper
Browse files Browse the repository at this point in the history
Exception caused in exception handler
  • Loading branch information
fr3ts0n committed Dec 20, 2017
1 parent af87c00 commit 9653ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/fr3ts0n/ecu/gui/androbd/FileHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9653ce0

Please sign in to comment.