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:
parent
2d80c2294b
commit
0ca2bfcf45
1 changed files with 3 additions and 10 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue