From fc93fc2f0e3098985e6265ee74a846441f08bb7a Mon Sep 17 00:00:00 2001 From: David Mak Date: Tue, 19 Sep 2023 12:38:35 +0800 Subject: [PATCH] core: Move bitcode verification error message into panic message --- nac3core/src/codegen/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nac3core/src/codegen/mod.rs b/nac3core/src/codegen/mod.rs index a315f76c..4684cad7 100644 --- a/nac3core/src/codegen/mod.rs +++ b/nac3core/src/codegen/mod.rs @@ -319,8 +319,7 @@ impl WorkerRegistry { let result = module.verify(); if let Err(err) = result { println!("{}", module.print_to_string().to_str().unwrap()); - println!("{}", err.to_string()); - panic!() + panic!("{}", err.to_string()) } let pass_options = PassBuilderOptions::create();