From 5bf80a463e422c43eac0d8747086ac232b82e8dd Mon Sep 17 00:00:00 2001 From: Puck Meerburg Date: Mon, 24 Nov 2025 18:37:10 +0000 Subject: [PATCH] (zilch lang rust): Print crate name of failed buildscript Change-Id: Ib3511b7cd8cdeb72528e5a0de9b9ff2b6a6a6964 --- lang/rust/helpers/src/bin/buildscript-runner.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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("")), ); } }