mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Add error message to exception
This commit is contained in:
parent
f2e8891db9
commit
591b10f4c9
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ public abstract class AuthenticatedActivity extends NavigationBaseActivity {
|
|||
.map(AccountManagerFuture::getResult)
|
||||
.doOnEvent((bundle, throwable) -> {
|
||||
if (bundle.containsKey(AccountManager.KEY_ACCOUNT_NAME)) {
|
||||
throw new RuntimeException();
|
||||
throw new RuntimeException("Bundle doesn't contain account-name key: "
|
||||
+ AccountManager.KEY_ACCOUNT_NAME);
|
||||
}
|
||||
})
|
||||
.map(bundle -> bundle.getString(AccountManager.KEY_ACCOUNT_NAME))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue