Improved error message

This commit is contained in:
M66B
2025-11-13 21:35:10 +01:00
parent 47c81d8194
commit bc0e1b56e2

View File

@@ -560,7 +560,7 @@ public class EmailService implements AutoCloseable {
} }
String msg = ex.getMessage(); String msg = ex.getMessage();
if (auth == AUTH_TYPE_GMAIL && if ((auth == AUTH_TYPE_GMAIL || auth == AUTH_TYPE_OAUTH) &&
msg != null && msg.endsWith("Invalid credentials (Failure)")) msg != null && msg.endsWith("Invalid credentials (Failure)"))
msg += "\n" + context.getString(R.string.title_service_token); msg += "\n" + context.getString(R.string.title_service_token);