From c4ab2855e5a236b66f5ea57189d70b98503143aa Mon Sep 17 00:00:00 2001 From: ychenfo Date: Mon, 30 May 2022 04:09:21 +0800 Subject: [PATCH] nac3core: pretty print codegen panic error --- nac3core/src/codegen/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/codegen/mod.rs b/nac3core/src/codegen/mod.rs index 4ee3f3a3f..fbd701503 100644 --- a/nac3core/src/codegen/mod.rs +++ b/nac3core/src/codegen/mod.rs @@ -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);