tweak error message
authorrleungx <rleungx@gmail.com>
Tue, 27 Mar 2018 12:34:18 +0000 (20:34 +0800)
committerrleungx <rleungx@gmail.com>
Tue, 27 Mar 2018 12:34:18 +0000 (20:34 +0800)
src/cargo/ops/cargo_rustc/context/mod.rs

index d51984375cfbc291937a07c394474614550bff16..1af18387d6163d139e9bb714f9ac2ba9571b94a3 100644 (file)
@@ -760,11 +760,11 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
         if ret.is_empty() {
             if !unsupported.is_empty() {
                 bail!(
-                    "cannot produce {} for `{}` as the target `{}` \
-                     does not support these crate types",
-                    unsupported.join(", "),
+                    "cannot compile `{}` package, because target `{}` \
+                     does not support the `{}` crate types",
                     unit.pkg,
-                    self.target_triple()
+                    self.target_triple(),
+                    unsupported.join(", ")
                 )
             }
             bail!(