1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-15 08:29:24 +00:00

Simplified server error

This commit is contained in:
M66B 2022-03-16 19:20:08 +01:00
parent 2d80c2294b
commit 0ca2bfcf45

View file

@ -460,17 +460,10 @@ public class EmailService implements AutoCloseable {
context.getString(R.string.title_service_auth, msg),
ex.getNextException());
}
} else if (purpose == PURPOSE_CHECK) {
String msg = ex.getMessage();
if (msg != null)
msg = msg.trim();
if (TextUtils.isEmpty(msg))
throw ex;
throw new AuthenticationFailedException(
context.getString(R.string.title_service_auth, msg),
ex.getNextException());
} else
throw ex;
throw new AuthenticationFailedException(
context.getString(R.string.title_service_auth, ex.getMessage()),
ex.getNextException());
} catch (MailConnectException ex) {
if (ConnectionHelper.vpnActive(context)) {
MailConnectException mex = new MailConnectException(