Improved error message

pull/180/head
M66B 5 years ago
parent 44de85e923
commit 8b81c5d097

@ -2002,6 +2002,9 @@ public class MessageHelper {
try { try {
contentType = new ContentType(part.getContentType()); contentType = new ContentType(part.getContentType());
} catch (ParseException ex) { } catch (ParseException ex) {
if (part instanceof MimeMessage)
Log.e("MimeMessage content type=" + ex.getMessage());
else
Log.w(ex); Log.w(ex);
contentType = new ContentType(Helper.guessMimeType(filename)); contentType = new ContentType(Helper.guessMimeType(filename));
} }

Loading…
Cancel
Save