nac3core: pretty print codegen panic error

This commit is contained in:
ychenfo 2022-05-30 04:09:21 +08:00
parent ffac37dc48
commit c4ab2855e5

View File

@ -247,7 +247,7 @@ impl WorkerRegistry {
let result = module.verify();
if let Err(err) = result {
println!("{}", module.print_to_string().to_str().unwrap());
println!("{}", err);
println!("{}", err.to_string());
panic!()
}
f.run(&module);