forked from M-Labs/nac3
nac3core: pretty print codegen panic error
This commit is contained in:
parent
ffac37dc48
commit
c4ab2855e5
|
@ -247,7 +247,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);
|
println!("{}", err.to_string());
|
||||||
panic!()
|
panic!()
|
||||||
}
|
}
|
||||||
f.run(&module);
|
f.run(&module);
|
||||||
|
|
Loading…
Reference in New Issue