wasm_interp: Fix parse error hex formatting

This commit is contained in:
Brian Carroll 2022-11-25 14:51:40 +00:00
parent 73ede61cb1
commit d9a8c6f64c
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0

View file

@ -67,7 +67,7 @@ fn main() -> io::Result<()> {
let module = match WasmModule::preload(&arena, &module_bytes, require_relocatable) { let module = match WasmModule::preload(&arena, &module_bytes, require_relocatable) {
Ok(m) => m, Ok(m) => m,
Err(e) => { Err(e) => {
eprintln!("I couldn't parse this WebAssembly module! There's something wrong at byte offset 0x{}.", e.offset); eprintln!("I couldn't parse this WebAssembly module! There's something wrong at byte offset {:#x}.", e.offset);
eprintln!("{}", e.message); eprintln!("{}", e.message);
eprintln!("If you think this could be a code generation problem in the Roc compiler, see crates/compiler/gen_wasm/README.md for debugging tips."); eprintln!("If you think this could be a code generation problem in the Roc compiler, see crates/compiler/gen_wasm/README.md for debugging tips.");
process::exit(1); process::exit(1);