mirror of https://github.com/rust-lang/cargo
Update not in list error message
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
This commit is contained in:
parent
66a8488cf6
commit
6c9f36d99b
|
@ -143,7 +143,7 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> {
|
|||
} else if !allowed_registries.contains(®_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
|
||||
);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue