core: Move bitcode verification error message into panic message

This commit is contained in:
David Mak 2023-09-19 12:38:35 +08:00
parent dd42022633
commit fc93fc2f0e
1 changed files with 1 additions and 2 deletions

View File

@ -319,8 +319,7 @@ impl WorkerRegistry {
let result = module.verify(); let result = module.verify();
if let Err(err) = result { if let Err(err) = result {
println!("{}", module.print_to_string().to_str().unwrap()); println!("{}", module.print_to_string().to_str().unwrap());
println!("{}", err.to_string()); panic!("{}", err.to_string())
panic!()
} }
let pass_options = PassBuilderOptions::create(); let pass_options = PassBuilderOptions::create();