Improving the error message for when a patched dependency does not resolve to anything
authorSunjay Varma <varma.sunjay@gmail.com>
Tue, 10 Oct 2017 19:51:59 +0000 (15:51 -0400)
committerSunjay Varma <varma.sunjay@gmail.com>
Mon, 30 Oct 2017 17:15:16 +0000 (13:15 -0400)
src/cargo/core/registry.rs

index 517486801d2107e4f66193c30794bcad7051b799..4ff031fdeaaa08a0c7e04c85c498a678e1af18bc 100644 (file)
@@ -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)
                 }
             };