]> git.proxmox.com Git - cargo.git/commitdiff
improve misleading error message
authorRalf Jung <post@ralfj.de>
Sat, 5 Aug 2017 04:27:26 +0000 (21:27 -0700)
committerRalf Jung <post@ralfj.de>
Thu, 17 Aug 2017 18:38:32 +0000 (20:38 +0200)
src/cargo/core/summary.rs
tests/features.rs

index 9fdc326b8e5e79bcdc57fda95c75f4f6f3f967ed..9902311e66ba38989bf3327b2ffd847d420ab77f 100644 (file)
@@ -53,8 +53,8 @@ impl Summary {
                                feature, dep)
                     }
                     None if is_reexport => {
-                        bail!("Feature `{}` requires `{}` which is not an \
-                               optional dependency", feature, dep)
+                        bail!("Feature `{}` requires a feature of `{}` which is not a \
+                               dependency", feature, dep)
                     }
                     None => {
                         bail!("Feature `{}` includes `{}` which is neither \
index 629bea34a63c6567ed17d6e0cff021be26200753..44cbf961032b6d71ec49f489f5203df1d0ba786b 100644 (file)
@@ -169,7 +169,7 @@ fn invalid6() {
 [ERROR] failed to parse manifest at `[..]`
 
 Caused by:
-  Feature `foo` requires `bar` which is not an optional dependency
+  Feature `foo` requires a feature of `bar` which is not a dependency
 "));
 }
 
@@ -193,7 +193,7 @@ fn invalid7() {
 [ERROR] failed to parse manifest at `[..]`
 
 Caused by:
-  Feature `foo` requires `bar` which is not an optional dependency
+  Feature `foo` requires a feature of `bar` which is not a dependency
 "));
 }