Improved error messages

This commit is contained in:
M66B
2019-09-24 14:52:46 +02:00
parent cfeb673c4b
commit a6721bf0b9
2 changed files with 6 additions and 2 deletions

View File

@@ -199,13 +199,13 @@ public class MailService implements AutoCloseable {
am.invalidateAuthToken(type, password);
String token = am.blockingGetAuthToken(account, getAuthTokenType(type), true);
if (token == null)
throw new IllegalArgumentException("no token");
throw new IllegalArgumentException("No token on refresh");
_connect(context, host, port, user, token);
return token;
}
throw new IllegalArgumentException("no account");
throw new IllegalArgumentException("Account not found");
} catch (Throwable ex1) {
Log.e(ex1);
throw ex;