diff --git a/lang/rust/helpers/src/bin/buildscript-runner.rs b/lang/rust/helpers/src/bin/buildscript-runner.rs index 6a98e61..3aa154d 100644 --- a/lang/rust/helpers/src/bin/buildscript-runner.rs +++ b/lang/rust/helpers/src/bin/buildscript-runner.rs @@ -114,8 +114,9 @@ fn main() { if !status.success() { panic!( - "Failed to execute.\nstdout: {}", - std::fs::read_to_string(var_os("out").unwrap()).unwrap() + "Failed to execute.\nstdout: {}\n\nPackage: {}", + std::fs::read_to_string(var_os("out").unwrap()).unwrap(), + var("CARGO_PKG_NAME").unwrap_or(String::from("")), ); } }