1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 07:23:03 +00:00

User friendly error messages

This commit is contained in:
M66B 2022-02-21 19:58:18 +01:00
parent a1df8b003a
commit 09922a3ec2

View file

@ -1575,15 +1575,13 @@ public class Log {
if (ex instanceof ConnectionException)
return null;
if (BuildConfig.PLAY_STORE_RELEASE &&
ex instanceof MailConnectException &&
if (ex instanceof MailConnectException &&
ex.getCause() instanceof SocketTimeoutException)
return null;
ex = new Throwable("No response received from email server", ex);
if (BuildConfig.PLAY_STORE_RELEASE &&
ex instanceof MessagingException &&
if (ex instanceof MessagingException &&
ex.getCause() instanceof UnknownHostException)
return null;
ex = new Throwable("Email server address lookup failed", ex);
if (ex instanceof StoreClosedException ||
ex instanceof FolderClosedException ||