Improved error message

This commit is contained in:
M66B 2021-05-30 14:25:44 +02:00
parent fd462abe65
commit 9bfbbb6950
1 changed files with 2 additions and 1 deletions

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