projects
/
cargo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
715fc78
)
tweak error message
author
rleungx
<rleungx@gmail.com>
Tue, 27 Mar 2018 12:34:18 +0000
(20:34 +0800)
committer
rleungx
<rleungx@gmail.com>
Tue, 27 Mar 2018 12:34:18 +0000
(20:34 +0800)
src/cargo/ops/cargo_rustc/context/mod.rs
patch
|
blob
|
history
diff --git
a/src/cargo/ops/cargo_rustc/context/mod.rs
b/src/cargo/ops/cargo_rustc/context/mod.rs
index d51984375cfbc291937a07c394474614550bff16..1af18387d6163d139e9bb714f9ac2ba9571b94a3 100644
(file)
--- 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!(