From 835851e93dd9eb0642d3359f25ad7586328a6ac2 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 22 Mar 2022 14:06:49 +0100 Subject: [PATCH] Improved error message --- app/src/main/java/eu/faircode/email/MessageHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index de6bef34ce..11a281c6aa 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -3450,7 +3450,7 @@ public class MessageHelper { db.attachment().setDownloaded(attachment.id, efile.length()); } } catch (Throwable ex) { - Log.e(ex); + Log.e(new Throwable(local.name, ex)); db.attachment().setWarning(local.id, Log.formatThrowable(ex)); } else @@ -3535,7 +3535,7 @@ public class MessageHelper { } } } catch (Throwable ex) { - Log.e(ex); + Log.e(new Throwable(local.name, ex)); // ArchiveException: Unsupported feature encryption used in entry ... // UnsupportedZipFeatureException: No Archiver found for the stream signature if (ex instanceof ArchiveException ||