address comment
authorrleungx <rleungx@gmail.com>
Tue, 27 Mar 2018 12:54:18 +0000 (20:54 +0800)
committerrleungx <rleungx@gmail.com>
Tue, 27 Mar 2018 12:58:09 +0000 (20:58 +0800)
src/cargo/ops/cargo_rustc/context/mod.rs

index 1af18387d6163d139e9bb714f9ac2ba9571b94a3..2865e4842cca23af5974fbb7ed3f336e3a471a44 100644 (file)
@@ -761,10 +761,11 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
             if !unsupported.is_empty() {
                 bail!(
                     "cannot compile `{}` package, because target `{}` \
-                     does not support the `{}` crate types",
+                     does not support the `{}` crate type{}",
                     unit.pkg,
                     self.target_triple(),
-                    unsupported.join(", ")
+                    unsupported.join(", "),
+                    if unsupported.len() == 1 { "" } else { "s" }
                 )
             }
             bail!(