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

feat: display meaningful error msg when cannot determine target #6594

Merged
merged 14 commits into from
Jul 16, 2024

Conversation

9kubczas4
Copy link
Contributor

@9kubczas4 9kubczas4 commented Dec 7, 2023

Description

Display a meaningful error message when the cannot determine the target.
It would be helpful in scenarios when the user changed default configuration names, for example, production to live.
This change allows us to understand better what needs to be done by the developer to fix this issue.

Previous error message: Error: Configuration 'production' is not set in the workspace.
Current error message: Unable to determine the application to deploy, specify a target via the FIREBASE_FRAMEWORKS_BUILD_TARGET environment variable.

Related to #6138.

Scenarios Tested

  1. Create Angular application (v17)
  2. Rename the production configuration to live - adjust angular.json
  3. Deploy to Firebase using FIREBASE_FRAMEWORKS_BUILD_TARGET='live' firebase deploy

@codecov-commenter
Copy link

codecov-commenter commented Dec 7, 2023

Codecov Report

Attention: Patch coverage is 14.28571% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 54.79%. Comparing base (b82594f) to head (6de3c23).
Report is 1 commits behind head on master.

Files Patch % Lines
src/frameworks/angular/utils.ts 14.28% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6594      +/-   ##
==========================================
+ Coverage   54.61%   54.79%   +0.18%     
==========================================
  Files         356      358       +2     
  Lines       24892    25015     +123     
  Branches     5136     5157      +21     
==========================================
+ Hits        13594    13708     +114     
- Misses      10066    10072       +6     
- Partials     1232     1235       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/frameworks/angular/utils.ts Outdated Show resolved Hide resolved
src/frameworks/angular/utils.ts Outdated Show resolved Hide resolved
src/frameworks/angular/utils.ts Show resolved Hide resolved
@jamesdaniels
Copy link
Member

Few small things, thanks

@9kubczas4 9kubczas4 requested a review from leoortizz April 1, 2024 20:44
@9kubczas4 9kubczas4 enabled auto-merge (squash) July 16, 2024 18:27
@9kubczas4 9kubczas4 merged commit 3ed5803 into master Jul 16, 2024
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants