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

fix error messaging in apps:sdkconfig #4549

Merged
merged 3 commits into from May 17, 2022
Merged

fix error messaging in apps:sdkconfig #4549

merged 3 commits into from May 17, 2022

Conversation

bkendall
Copy link
Contributor

Description

The error messaging when trying to get apps:sdkconfig was confusing and inconsistent when in interactive vs. non-interactive mode. Unify the error messaging to make a bit more sense and to be consistent when there are no apps.

Fixes #4007

Scenarios Tested

image

// If there's only one, use it.
appId = apps[0].appId;
appPlatform = apps[0].platform;
} else if (options.nonInteractive) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this behave when there are 0 apps? Do we show the correct error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Above, on L77, it checks for apps and will throw an error if there are no apps.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp, just saw that you had a screenshot of this case. LGTM

Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as long as this behaves correctly when there are 0 apps

@bkendall bkendall merged commit 794dfe7 into master May 17, 2022
@bkendall bkendall deleted the bk-4007 branch May 18, 2022 20:19
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 this pull request may close these issues.

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