mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 05:15:13 +02:00
Improved error message
This commit is contained in:
@@ -1741,6 +1741,9 @@ public class Log {
|
||||
ex.getCause() instanceof SocketTimeoutException)
|
||||
ex = new Throwable("No response received from email server", ex);
|
||||
|
||||
if (ex.getMessage() != null && ex.getMessage().contains("Read timed out"))
|
||||
ex = new Throwable("No response received from email server", ex);
|
||||
|
||||
if (ex instanceof MessagingException &&
|
||||
ex.getCause() instanceof UnknownHostException)
|
||||
ex = new Throwable("Email server address lookup failed", ex);
|
||||
|
||||
Reference in New Issue
Block a user