mirror of
https://github.com/storytold/soundcraft.git
synced 2026-12-02 20:22:27 -05:00
Fail the build without panic! when SOUNDCRAFT_REQUIRE_WINRES is set
The workspace denies clippy::panic, build scripts included. Print the reason on stderr and exit 1 instead. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
1 parent
865baa99f1
commit
3e584701c5
1 file changed
+4
-1
@@ -67,7 +67,10 @@ fn main() {
|
||||
}
|
||||
if let Err(e) = res.compile() {
|
||||
if std::env::var_os("SOUNDCRAFT_REQUIRE_WINRES").is_some() {
|
||||
panic!("embedding Windows resources failed: {e}");
|
||||
// The workspace denies `clippy::panic`, build scripts included: stop the build with
|
||||
// the reason on stderr.
|
||||
eprintln!("embedding Windows resources failed: {e}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
println!("cargo:warning=soundcraft.exe built without icon/version resources: {e}");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user