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:
parent
a1df8b003a
commit
09922a3ec2
1 changed files with 4 additions and 6 deletions
|
@ -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 ||
|
||||
|
|
Loading…
Reference in a new issue