diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-03-09 20:25:12 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-03-09 20:25:12 +0800 |
| commit | 9f5373107ae292a0d787fc89ae3c0138a2af15cc (patch) | |
| tree | 3ae63b8c60691b63cfb9f62eb4a7ddcc3e213133 /build.rs | |
| parent | 47d08df69d76300c6d01327261d1fa7dba895752 (diff) | |
Replace warnings with panics in Windows GUI build script
Diffstat (limited to 'build.rs')
| -rw-r--r-- | build.rs | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -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); } } |
