Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rleungx committed Mar 27, 2018
1 parent 3ee9cab commit 967f094
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cargo/ops/cargo_rustc/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 967f094

Please sign in to comment.