Small improvement

pull/175/head
M66B 6 years ago
parent 5e6f2e4599
commit ae9fe0861c

@ -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);

Loading…
Cancel
Save