Report attachment errors

This commit is contained in:
M66B
2019-06-29 16:52:43 +02:00
parent c94f272714
commit 7a988e3005
3 changed files with 4 additions and 2 deletions

View File

@@ -923,6 +923,7 @@ public class MessageHelper {
throw new MessagingException("downloadAttachment", ex);
} catch (Throwable ex) {
// Reset progress on failure
Log.e(ex);
db.attachment().setError(local.id, Helper.formatThrowable(ex));
throw ex;
}