From: rleungx Date: Tue, 27 Mar 2018 12:34:18 +0000 (+0800) Subject: tweak error message X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~2^2~5^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3ee9cab057a106ad5ddcbc061ba8f2eb3271ea6a;p=cargo.git tweak error message --- diff --git a/src/cargo/ops/cargo_rustc/context/mod.rs b/src/cargo/ops/cargo_rustc/context/mod.rs index d51984375..1af18387d 100644 --- a/src/cargo/ops/cargo_rustc/context/mod.rs +++ b/src/cargo/ops/cargo_rustc/context/mod.rs @@ -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!(