Commit 88c7b80
authored
fix(schematics): warn when ng add setup runs with no features selected (#3717)
* fix(schematics): warn when ng add setup runs with no features selected
Pressing Enter without toggling any checkbox at the features prompt
silently exited with the CLI's stock "Nothing to be done." message,
giving no indication that Space selects a feature. Print a warning
explaining the checkbox controls and inviting a retry.
* refactor(schematics): derive the empty-features warning from the prompt message
The empty-features warning duplicated the checkbox prompt's message as a
second string literal, so a reworded prompt would leave the warning
pointing at text the user never sees. Export the message as a shared
constant and reference it in both places, matching the shared-constant
pattern used for the firebase-tools version message in 59c8a2f.1 parent b551b5f commit 88c7b80
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
0 commit comments