Add logging when checking POP3 server settings fails

This commit is contained in:
cketti 2024-02-12 14:07:28 +01:00
parent 32f847622c
commit 1ac7d1bb3d

View file

@ -4,6 +4,7 @@ package com.fsck.k9.mail.store.pop3;
import java.util.HashMap;
import java.util.Map;
import com.fsck.k9.logging.Timber;
import com.fsck.k9.mail.AuthType;
import com.fsck.k9.mail.ConnectionSecurity;
import com.fsck.k9.mail.MessagingException;
@ -54,8 +55,10 @@ public class Pop3Store {
try {
folder.open();
folder.requestUidl();
}
finally {
} catch (Exception e) {
Timber.e(e, "Error while checking server settings");
throw e;
} finally {
folder.close();
}
}