Report on demand errors

pull/149/head
M66B 6 years ago
parent 0731872dcf
commit e16ad42a75

@ -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 {

Loading…
Cancel
Save