From: Sunjay Varma Date: Tue, 10 Oct 2017 19:51:59 +0000 (-0400) Subject: Improving the error message for when a patched dependency does not resolve to anything X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~5^2~21^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b6ba5e788285cab9aa151f23109de3cc10973d20;p=cargo.git Improving the error message for when a patched dependency does not resolve to anything --- diff --git a/src/cargo/core/registry.rs b/src/cargo/core/registry.rs index 517486801..4ff031fde 100644 --- a/src/cargo/core/registry.rs +++ b/src/cargo/core/registry.rs @@ -194,7 +194,8 @@ impl<'cfg> PackageRegistry<'cfg> { let summary = match summaries.next() { Some(summary) => summary, None => { - bail!("patch for `{}` in `{}` did not resolve to any crates", + bail!("patch for `{}` in `{}` did not resolve to any crates. Your patched \ + dependency may conflict with the version in Cargo.lock.", dep.name(), url) } };