Skip to content

Commit

Permalink
panic on compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
seunlanlege committed Feb 12, 2024
1 parent 71701dc commit ffd8077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn runner_with_root(root: PathBuf) -> MultiContractRunner {

let compiled = project.compile().unwrap();
if compiled.has_compiler_errors() {
eprintln!("Compiler errors: {compiled}");
panic!("Compiler errors: {compiled}");
}

let mut config = Config::with_root(root.clone());
Expand Down

0 comments on commit ffd8077

Please sign in to comment.