Help with [patch.crates.io]

This commit is contained in:
Kornel 2024-10-17 11:14:51 +01:00
parent eaee77dc15
commit b07c611bf1
No known key found for this signature in database

View File

@ -1920,8 +1920,13 @@ fn patch(
.or_else(|_| toml_url.into_url())
.with_context(|| {
format!(
"[patch] entry `{}` should be a URL or registry name",
toml_url
"[patch] entry `{}` should be a URL or registry name{}",
toml_url,
if toml_url == "crates" {
"\nFor crates.io, use [patch.crates-io] (with a dash)"
} else {
""
}
)
})?,
};