From ffd80776b9fe743f162108b02742267aff02a60a Mon Sep 17 00:00:00 2001 From: Seun Lanlege Date: Mon, 12 Feb 2024 12:06:06 +0000 Subject: [PATCH] panic on compilation error --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index c6b1ac7..c24cd31 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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());