Skip to content

Commit

Permalink
improve panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Feb 14, 2025
1 parent e2e2aba commit d72cde9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasmi/src/module/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl MemoryType {
b.page_size_log2(page_size_log2);
}
b.build()
.expect("encountered invalid wasmparser::MemoryType after validation")
.unwrap_or_else(|err| panic!("received invalid `MemoryType` from `wasmparser`: {err}"))
}
}

Expand Down

0 comments on commit d72cde9

Please sign in to comment.