Skip to content

Commit

Permalink
Update not in list error message
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
  • Loading branch information
Rustin170506 committed Oct 24, 2022
1 parent 66a8488 commit 6c9f36d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cargo/ops/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down
6 changes: 3 additions & 3 deletions tests/testsuite/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6c9f36d

Please sign in to comment.