Skip to content

Commit

Permalink
handle failed steps in hemtt launch
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Jan 25, 2024
1 parent b415bea commit 80dcee0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "hemtt"
description = "HEMTT - Arma 3 Build Tool"
version = "1.11.0-rc3"
version = "1.11.0-rc4"
edition = "2021"
license = "GPL-2.0"
authors = ["Brett Mayson <[email protected]>"]
Expand Down
4 changes: 4 additions & 0 deletions bin/src/commands/launch/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ pub fn execute(matches: &ArgMatches) -> Result<Report, Error> {

report.merge(executor.run()?);

if report.failed() {
return Ok(report);
}

let prefix_folder = arma3dir.join(mainprefix);
if !prefix_folder.exists() {
std::fs::create_dir_all(&prefix_folder)?;
Expand Down
1 change: 1 addition & 0 deletions bin/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ impl Executor {
/// The exeuctor will run the `build` phases
pub fn build(&mut self, write: bool) {
self.stages.push("pre_build");
info!("will write pbo: {}", write);
if write {
self.stages.push("build");
self.stages.push("post_build");
Expand Down
2 changes: 1 addition & 1 deletion bin/src/modules/sqf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl Module for SQFCompiler {
for new_report in reports {
report.merge(new_report);
}
info!("Compiled {} sqf files", counter.load(Ordering::Relaxed));
info!("Validated {} sqf files", counter.load(Ordering::Relaxed));
Ok(report)
}
}

0 comments on commit 80dcee0

Please sign in to comment.