diff options
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); } } |
