Improved SMTP auth error

pull/198/head
M66B 4 years ago
parent e49e1d702f
commit 8a977f4297

@ -398,7 +398,9 @@ public class EmailService implements AutoCloseable {
connect(host, port, auth, user, authenticator, factory); connect(host, port, auth, user, authenticator, factory);
} catch (Exception ex1) { } catch (Exception ex1) {
Log.e(ex1); Log.e(ex1);
throw new AuthenticationFailedException(ex.getMessage(), ex1); throw new AuthenticationFailedException(
context.getString(R.string.title_service_auth, ex.getMessage()),
ex.getNextException());
} }
} else if (purpose == PURPOSE_CHECK) { } else if (purpose == PURPOSE_CHECK) {
String msg = ex.getMessage(); String msg = ex.getMessage();

Loading…
Cancel
Save