From ae9fe0861c5ada1a0eba9fcd590bae3dd12b100c Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 11 Mar 2020 14:27:18 +0100 Subject: [PATCH] Small improvement --- app/src/main/java/eu/faircode/email/EmailService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/EmailService.java b/app/src/main/java/eu/faircode/email/EmailService.java index 68673d47ff..29d60c3d59 100644 --- a/app/src/main/java/eu/faircode/email/EmailService.java +++ b/app/src/main/java/eu/faircode/email/EmailService.java @@ -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);