Commit 2d9a335
committed
Auto merge of #14279 - tweag:improved-error-message-invalid-spec-update-breaking, r=weihanglo
Improved error message when `update --breaking` invalid spec.
Improves an error message when trying to do `cargo update --breaking clap@foo`:
```
- [ERROR] expected a version like "1.32"
+ [ERROR] invalid package ID specification: `clap@foo`
+ Caused by:
+ expected a version like "1.32"
```
Related to #12425. Fixes an item [here](#12425 (comment)), as noted [here](#14049 (comment)).2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
228 | 232 | | |
229 | 233 | | |
230 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2263 | 2263 | | |
2264 | 2264 | | |
2265 | 2265 | | |
2266 | | - | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
2267 | 2270 | | |
2268 | 2271 | | |
2269 | 2272 | | |
| |||
0 commit comments