Skip to content

Commit

Permalink
log compiler errors on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Mar 14, 2024
1 parent aa0b303 commit e758bd2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/forge/bin/cmd/test/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ impl TestArgs {
OutputSelection::common_output_selection(["abi".to_string()]);
let output = project.compile()?;

if output.has_compiler_errors() {
println!("{}", output);
eyre::bail!("Compilation failed");
}

// ABIs of all sources
let abis = output
.into_artifacts()
Expand Down

0 comments on commit e758bd2

Please sign in to comment.