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 3f99667ec2
commit 0e9d6476d1
1 changed files with 1 additions and 2 deletions

View File

@ -338,8 +338,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())
}
f.run(&module);