Skip to content

Commit 94539e3

Browse files
authored
Improve error message for missing button (#1759)
1 parent 0ff2ec8 commit 94539e3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

auth/src/main/java/com/firebase/ui/auth/AuthUI.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,6 @@ public SignInIntentBuilder createSignInIntentBuilder() {
487487
ANONYMOUS_PROVIDER,
488488
EmailAuthProvider.EMAIL_LINK_SIGN_IN_METHOD
489489
})
490-
491490
@Retention(RetentionPolicy.SOURCE)
492491
public @interface SupportedProvider {
493492
}

auth/src/main/java/com/firebase/ui/auth/ui/idp/AuthMethodPickerActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private void populateIdpListCustomLayout(List<IdpConfig> providerConfigs) {
223223
final String providerId = providerOrEmailLinkProvider(idpConfig.getProviderId());
224224

225225
if (!providerButtonIds.containsKey(providerId)) {
226-
throw new IllegalStateException("No button found for auth provider: " + providerId);
226+
throw new IllegalStateException("No button found for auth provider: " + idpConfig.getProviderId());
227227
}
228228

229229
@IdRes int buttonId = providerButtonIds.get(providerId);

0 commit comments

Comments
 (0)