-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #11375 - xxchan:xxchan/experienced-limpet, r=epage
improve error message for cargo add/remove ### What does this PR try to resolve? When I see the old error: ``` > cargo add paste error: 2 packages selected. Please specify one with `-p <PKGID>` ``` I was a little bit confused, and thought it says there are 2 packages called "paste". The new message is similar to `cargo run`
- Loading branch information
Showing
3 changed files
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
tests/testsuite/cargo_remove/invalid_package_multiple/stderr.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
error: 2 packages selected. Please specify one with `-p <PKG_ID>` | ||
error: `cargo remove` could not determine which package to modify. Use the `--package` option to specify a package. | ||
available packages: dep-a, dep-b |