Report on demand errors

This commit is contained in:
M66B 2019-02-21 08:15:32 +00:00
parent 0731872dcf
commit e16ad42a75
1 changed files with 2 additions and 0 deletions

View File

@ -2272,6 +2272,8 @@ public class ServiceSynchronize extends LifecycleService {
synchronizeMessages(account, folder, (IMAPFolder) ifolder, folder.getSyncArgs(), new ServiceState());
} catch (Throwable ex) {
Log.w(ex);
reportError(account, folder, ex);
db.account().setAccountError(account.id, Helper.formatThrowable(ex));
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex));
} finally {