Skip to content

Commit 6c9f36d

Browse files
committed
Update not in list error message
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent 66a8488 commit 6c9f36d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cargo/ops/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> {
143143
} else if !allowed_registries.contains(&reg_name) {
144144
bail!(
145145
"`{}` cannot be published.\n\
146-
The registry `{}` is not listed in the `publish` value in Cargo.toml.",
146+
The registry `{}` is not listed in the `package.publish` value in Cargo.toml.",
147147
pkg.name(),
148148
reg_name
149149
);

tests/testsuite/publish.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ fn registry_not_in_publish_list() {
655655
.with_stderr(
656656
"\
657657
[ERROR] `foo` cannot be published.
658-
The registry `alternative` is not listed in the `publish` value in Cargo.toml.
658+
The registry `alternative` is not listed in the `package.publish` value in Cargo.toml.
659659
",
660660
)
661661
.run();
@@ -819,7 +819,7 @@ fn publish_fail_with_no_registry_specified() {
819819
.with_stderr(
820820
"\
821821
[ERROR] `foo` cannot be published.
822-
The registry `crates-io` is not listed in the `publish` value in Cargo.toml.
822+
The registry `crates-io` is not listed in the `package.publish` value in Cargo.toml.
823823
",
824824
)
825825
.run();
@@ -880,7 +880,7 @@ fn publish_with_crates_io_explicit() {
880880
.with_stderr(
881881
"\
882882
[ERROR] `foo` cannot be published.
883-
The registry `alternative` is not listed in the `publish` value in Cargo.toml.
883+
The registry `alternative` is not listed in the `package.publish` value in Cargo.toml.
884884
",
885885
)
886886
.run();

0 commit comments

Comments
 (0)