Skip to content

Commit

Permalink
panic instead of logging the error
Browse files Browse the repository at this point in the history
  • Loading branch information
venkkatesh-sekar committed Sep 23, 2024
1 parent 5e8e27e commit 17dd7ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/limit_resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ fn limit_heap_memory(m: &mut Module, limit: u32) {
{
memory.initial = limit;
} else {
eprintln!("Unable to restrict Wasm heap memory to {} pages", limit);
return;
panic!("Unable to restrict Wasm heap memory to {} pages", limit);
}
}
memory.maximum = Some(limit);
Expand Down

0 comments on commit 17dd7ad

Please sign in to comment.