1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

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

4
FAQ.md
View file

@ -712,6 +712,10 @@ The error *... Read timed out ...* means that the email server is not responding
The error *... Failed to load IMAP envelope ...* is caused by a bug in the IMAP server of your provider.
One or more messages could not be retrieved due to an unrecoverable error in the IMAP protocol.
The error *Account not found* means that a previously selected Gmail account was not found anymore, see also [this FAQ](#user-content-faq136).
The error *No token on refresh* means that no token was returned on refreshing the authentication of Gmail account, see also [this FAQ](#user-content-faq136).
See [here](https://linux.die.net/man/3/connect) for what error codes like EHOSTUNREACH and ETIMEDOUT mean.
Possible causes are:

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;