Skip to content

Commit

Permalink
Fix go build success check (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
AzazKamaz authored Jan 3, 2025
1 parent 409feab commit 900ae95
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rust2go/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ impl GoCompiler for DefaultGoCompiler {
.arg(output)
.arg(".");

go_build.status().expect("Go build failed");
assert!(
go_build.status().expect("Go build failed").success(),
"Go build failed"
);
}
}

Expand Down

0 comments on commit 900ae95

Please sign in to comment.