mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
fix: mention "3" as a valid value for "resolver" field in error message
This commit is contained in:
parent
1566e4c346
commit
dbd64ec81f
@ -122,7 +122,7 @@ impl ResolveBehavior {
|
||||
"2" => Ok(ResolveBehavior::V2),
|
||||
"3" => Ok(ResolveBehavior::V3),
|
||||
s => anyhow::bail!(
|
||||
"`resolver` setting `{}` is not valid, valid options are \"1\" or \"2\"",
|
||||
"`resolver` setting `{}` is not valid, valid options are \"1\", \"2\" or \"3\"",
|
||||
s
|
||||
),
|
||||
}
|
||||
|
@ -1391,7 +1391,7 @@ fn resolver_bad_setting() {
|
||||
[ERROR] failed to parse manifest at `[ROOT]/foo/Cargo.toml`
|
||||
|
||||
Caused by:
|
||||
`resolver` setting `foo` is not valid, valid options are "1" or "2"
|
||||
`resolver` setting `foo` is not valid, valid options are "1", "2" or "3"
|
||||
|
||||
"#]])
|
||||
.run();
|
||||
|
Loading…
x
Reference in New Issue
Block a user