summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-03-09 20:25:12 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-03-09 20:25:12 +0800
commit9f5373107ae292a0d787fc89ae3c0138a2af15cc (patch)
tree3ae63b8c60691b63cfb9f62eb4a7ddcc3e213133 /build.rs
parent47d08df69d76300c6d01327261d1fa7dba895752 (diff)
Replace warnings with panics in Windows GUI build script
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/build.rs b/build.rs
index 4c8cec0..0bd7e8d 100644
--- a/build.rs
+++ b/build.rs
@@ -74,11 +74,7 @@ fn build_win32_gui() {
.expect("Failed to execute build script");
if !status.success() {
- eprintln!(
- "Warning: Build script failed with exit code: {:?}",
- status.code()
- );
- return;
+ panic!("Build script failed with exit code: {:?}", status.code());
}
let exe_path = Path::new(crate_root)
@@ -89,13 +85,10 @@ fn build_win32_gui() {
let dest_path = target_dir.join(EXE_NAME);
if let Err(e) = fs::copy(&exe_path, &dest_path) {
- eprintln!(
- "Warning: Failed to copy executable to build directory: {}",
- e
- );
+ panic!("Failed to copy executable to build directory: {}", e);
}
} else {
- eprintln!("Warning: Executable not found at: {:?}", exe_path);
+ panic!("Executable not found at: {:?}", exe_path);
}
}