mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Localize service error messages
This commit is contained in:
@@ -340,7 +340,7 @@ public class EmailService implements AutoCloseable {
|
||||
} catch (MailConnectException ex) {
|
||||
if (ConnectionHelper.vpnActive(context)) {
|
||||
MailConnectException mex = new MailConnectException(new SocketConnectException(
|
||||
"The might be caused by the VPN in use",
|
||||
context.getString(R.string.title_service_vpn),
|
||||
new Exception(),
|
||||
ex.getHost(),
|
||||
ex.getPort(),
|
||||
@@ -351,7 +351,7 @@ public class EmailService implements AutoCloseable {
|
||||
throw ex;
|
||||
} catch (MessagingException ex) {
|
||||
if (port == 995 && !("pop3".equals(protocol) || "pop3s".equals(protocol)))
|
||||
throw new MessagingException("Please double check the port number", ex);
|
||||
throw new MessagingException(context.getString(R.string.title_service_port), ex);
|
||||
else
|
||||
throw ex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user