Skip to content

Commit

Permalink
Fix wrong function name in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
BrendoCosta committed Oct 15, 2024
1 parent ef9fd8c commit c936e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gwr/execution/store.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub fn append_web_assembly_function(to store: Store, append function: module.Fun
case types_list |> list.take(up_to: function.type_ + 1) |> list.last
{
Ok(function_type) -> Ok(Store(..store, functions: dict.insert(into: store.functions, for: function_address, insert: runtime.WebAssemblyFunctionInstance(type_: function_type, module_instance: empty_module_instance, code: function))))
Error(_) -> Error("gwr/execution/store.append_function: couldn't find the type of the function among types list")
Error(_) -> Error("gwr/execution/store.append_web_assembly_function: couldn't find the type of the function among types list")
}
}

Expand Down

0 comments on commit c936e39

Please sign in to comment.