mirror of https://github.com/M66B/FairEmail.git
Report on demand errors
This commit is contained in:
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…
Reference in New Issue