Update not in list error message

Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
hi-rustin 2022-10-24 22:50:25 +08:00
parent 66a8488cf6
commit 6c9f36d99b
2 changed files with 4 additions and 4 deletions

View File

@ -143,7 +143,7 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> {
} else if !allowed_registries.contains(&reg_name) {
bail!(
"`{}` cannot be published.\n\
The registry `{}` is not listed in the `publish` value in Cargo.toml.",
The registry `{}` is not listed in the `package.publish` value in Cargo.toml.",
pkg.name(),
reg_name
);

View File

@ -655,7 +655,7 @@ fn registry_not_in_publish_list() {
.with_stderr(
"\
[ERROR] `foo` cannot be published.
The registry `alternative` is not listed in the `publish` value in Cargo.toml.
The registry `alternative` is not listed in the `package.publish` value in Cargo.toml.
",
)
.run();
@ -819,7 +819,7 @@ fn publish_fail_with_no_registry_specified() {
.with_stderr(
"\
[ERROR] `foo` cannot be published.
The registry `crates-io` is not listed in the `publish` value in Cargo.toml.
The registry `crates-io` is not listed in the `package.publish` value in Cargo.toml.
",
)
.run();
@ -880,7 +880,7 @@ fn publish_with_crates_io_explicit() {
.with_stderr(
"\
[ERROR] `foo` cannot be published.
The registry `alternative` is not listed in the `publish` value in Cargo.toml.
The registry `alternative` is not listed in the `package.publish` value in Cargo.toml.
",
)
.run();