1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 13:14:39 +00:00

Improved error message

This commit is contained in:
M66B 2021-05-30 14:25:44 +02:00
parent fd462abe65
commit 9bfbbb6950

View file

@ -318,7 +318,8 @@ public class FragmentOAuth extends FragmentBase {
try {
authIntent = authService.getAuthorizationRequestIntent(authRequest);
} catch (ActivityNotFoundException ex) {
throw new ActivityNotFoundException("Browser not found");
Log.e(ex);
throw new ActivityNotFoundException("Browser not found: " + ex.getMessage());
}
PackageManager pm = getContext().getPackageManager();
if (authIntent.resolveActivity(pm) == null) // action whitelisted