Repository navigation
Commit c982e9a
authored
TML-3900: Under --yes, the consent error says --yes is not sufficient (#399)
A user runs a command with `--yes`, and the command needs consent that
`--yes` cannot give.
Before:
```text
✘ [CLI.CONSENT_REQUIRED] This command requires explicit consent, and --yes does not give it.
```
After:
```text
✘ [CLI.CONSENT_REQUIRED] This command requires explicit consent for which --yes is not sufficient.
```
## Why
"--yes does not give it" reads oddly. The new sentence says the same
thing in ordinary words: `--yes` accepts routine confirmations, and this
consent needs more than that.
## The change
One sentence in `consentMissing`
(`packages/cli-engine/src/execution/prompts.ts`), which both
`CLI.CONSENT_REQUIRED` errors use. The sentence without `--yes`, `This
command requires explicit consent, but it was not provided.`, is
unchanged. So are `why`, the next steps, `meta`, the error code and the
exit code.
Three engine tests and one line of the error reference follow the new
text.
## Version and conformance
`@prisma/cli-engine` goes from 0.10.3 to 0.10.4, a patch. The two
`dev`-channel exceptions in `packages/cli/scripts/conformance.ts` now
name 0.10.4. As before, a CLI release is refused until
`@prisma/orm-toolchain` and `@prisma/composer-cli` require this engine
version, and the pull request that pins those releases removes the
exceptions.
Agent: hammurabi-19
Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>1 parent fc95f03 commit c982e9a
10 files changed
Lines changed: 16 additions & 16 deletions
File tree
- docs/reference
- packages
- cli-engine
- src/execution
- tests
- cli
- scripts
- prisma
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments