Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
breathx committed Jun 4, 2024
1 parent 8c76964 commit b696a27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion substrate/utils/wasm-builder/src/wasm_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -755,8 +755,10 @@ fn build_bloaty_blob(
println!("{} {:?}", colorize_info_message("Executing build command:"), build_cmd);
println!("{} {}", colorize_info_message("Using rustc version:"), cargo_cmd.rustc_version());

let status = build_cmd.status();

// Use `process::exit(1)` to have a clean error output.
if build_cmd.status().map(|s| s.success()).is_err() {
if status.is_err() || !status.expect("checked on left operand; qed").success() {
process::exit(1);
}
}
Expand Down

0 comments on commit b696a27

Please sign in to comment.