Simplified server error

This commit is contained in:
M66B 2022-03-16 19:20:08 +01:00
parent 2d80c2294b
commit 0ca2bfcf45
1 changed files with 3 additions and 10 deletions

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(