Improved OAuth error message

This commit is contained in:
M66B
2019-09-24 15:34:39 +02:00
parent 86b0fceecd
commit d603e00d35

View File

@@ -206,9 +206,9 @@ public class MailService implements AutoCloseable {
}
throw new IllegalArgumentException("Account not found");
} catch (Throwable ex1) {
} catch (Exception ex1) {
Log.e(ex1);
throw ex;
throw new AuthenticationFailedException(ex.getMessage(), ex1);
}
else
throw ex;