(zilch lang rust): Print crate name of failed buildscript
Change-Id: Ib3511b7cd8cdeb72528e5a0de9b9ff2b6a6a6964
This commit is contained in:
parent
ace83f3b1b
commit
5bf80a463e
1 changed files with 3 additions and 2 deletions
|
|
@ -114,8 +114,9 @@ fn main() {
|
||||||
|
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
panic!(
|
panic!(
|
||||||
"Failed to execute.\nstdout: {}",
|
"Failed to execute.\nstdout: {}\n\nPackage: {}",
|
||||||
std::fs::read_to_string(var_os("out").unwrap()).unwrap()
|
std::fs::read_to_string(var_os("out").unwrap()).unwrap(),
|
||||||
|
var("CARGO_PKG_NAME").unwrap_or(String::from("<unknown>")),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue