From b6ba5e788285cab9aa151f23109de3cc10973d20 Mon Sep 17 00:00:00 2001 From: Sunjay Varma Date: Tue, 10 Oct 2017 15:51:59 -0400 Subject: [PATCH] Improving the error message for when a patched dependency does not resolve to anything --- src/cargo/core/registry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } }; -- 2.30.2