1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

Small improvement

This commit is contained in:
M66B 2020-03-11 14:27:18 +01:00
parent 5e6f2e4599
commit ae9fe0861c

View file

@ -320,13 +320,13 @@ public class EmailService implements AutoCloseable {
am.invalidateAuthToken(type, password);
String token = am.blockingGetAuthToken(account, getAuthTokenType(type), true);
if (token == null)
throw new AuthenticatorException("No token on refresh");
throw new AuthenticatorException("No token on refresh for " + user);
connect(host, port, user, token, factory);
return token;
}
throw new AuthenticatorException("Account not found");
throw new AuthenticatorException("Account not found for " + user);
} catch (Exception ex1) {
Log.e(ex1);
throw new AuthenticationFailedException(ex.getMessage(), ex1);