这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@waded

Description

@waded

[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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions