Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase apps:sdkconfig non-interactive output misleads, says "has multiple apps" when there are 0 apps #4007

Closed
waded opened this issue Jan 11, 2022 · 1 comment · Fixed by #4549
Assignees

Comments

@waded
Copy link

waded commented Jan 11, 2022

[REQUIRED] Environment info

firebase-tools: 9.22.0
Platform: Mac

[REQUIRED] Test case

[REQUIRED] Steps to reproduce

  • Create new firebase project, e.g. named "a-project-with-no-apps"
  • firebase use a-project-with-no-apps
  • firebase apps:sdkconfig web --json

[REQUIRED] Expected behavior

The JSON output indicates "Project a-project-with-no-apps has no apps. Create an app first." or similar.

[REQUIRED] Actual behavior

Output for this example project "a-project-with-no-apps" is:

{
  "status": "error",
  "error": "Project a-project-with-no-apps has multiple apps, must specify an app id."
}

which is misleading - the command can't produce output in this non-interactive mode because there are 0 apps, not multiple apps.

@waded
Copy link
Author

waded commented Jan 12, 2022

I'll file bug against Firebase UI example steps that led to discovering this misleading error message; I removed mention here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants