Refactoring

This commit is contained in:
M66B
2018-12-08 17:27:50 +01:00
parent 8e3088e67b
commit 7898fa1178
2 changed files with 3 additions and 0 deletions

View File

@@ -170,11 +170,13 @@ public class Helper {
static String formatThrowable(Throwable ex) {
StringBuilder sb = new StringBuilder();
sb.append(ex.getMessage() == null ? ex.getClass().getName() : ex.getMessage());
Throwable cause = ex.getCause();
while (cause != null) {
sb.append(" ").append(cause.getMessage() == null ? cause.getClass().getName() : cause.getMessage());
cause = cause.getCause();
}
return sb.toString();
}

View File

@@ -1433,6 +1433,7 @@ public class ServiceSynchronize extends LifecycleService {
reportError(account, folder, ex);
db.operation().setOperationError(op.id, Helper.formatThrowable(ex));
if (message != null &&
!(ex instanceof MessageRemovedException) &&
!(ex instanceof FolderClosedException) &&