From bd536c6f6ddc3daab96c5e1d1e5ce9c72be3b171 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Tue, 1 Jan 2019 23:30:38 -0800 Subject: [PATCH] Fix error message when resolving dependencies The error message: > Attempting to resolve a with more then one crate with the links= seems to be missing a noun. It appears that we are resolving a dependency, so adding that. --- src/cargo/core/resolver/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/core/resolver/context.rs b/src/cargo/core/resolver/context.rs index ef48192a276..826016671ec 100644 --- a/src/cargo/core/resolver/context.rs +++ b/src/cargo/core/resolver/context.rs @@ -65,8 +65,8 @@ impl Context { if let Some(link) = summary.links() { ensure!( self.links.insert(link, id).is_none(), - "Attempting to resolve a with more then one crate with the links={}. \n\ - This will not build as is. Consider rebuilding the .lock file.", + "Attempting to resolve a dependency with more then one crate with the \ + links={}.\nThis will not build as is. Consider rebuilding the .lock file.", &*link ); }