Skip to content

Commit

Permalink
test: add detailed error message for failed Miden VM Assembly compila…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
greenhat committed Nov 7, 2023
1 parent 379a676 commit 1779319
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/integration/src/compiler_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,13 @@ impl CompilerTest {
Some(&core_module.path),
&mut AssemblyContext::for_module(false),
)
.unwrap();
.expect(
format!(
"VM Assembler failed to compile module:\n{:?}",
core_module.ast
)
.as_str(),
);
}
let core_program = assembler.compile_ast(&program_ast).unwrap();
core_program
Expand Down

0 comments on commit 1779319

Please sign in to comment.