Improved error message

This commit is contained in:
M66B
2022-12-13 22:23:09 +01:00
parent ae40fe406e
commit bd3a963f96
2 changed files with 18 additions and 0 deletions

View File

@@ -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);