From 4cd48d3930c628b39f627deb843568db7f49a73b Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Wed, 5 Apr 2023 03:52:33 +0300 Subject: [PATCH] FIXES #137: make calling wasm from python 7x faster --- wasmtime/_value.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasmtime/_value.py b/wasmtime/_value.py index 703ba0c8..e4f8848a 100644 --- a/wasmtime/_value.py +++ b/wasmtime/_value.py @@ -81,7 +81,7 @@ def val_setter(dst: wasmtime_val_raw_t, attr: str, val: "IntoVal") -> None: # TODO: validate same val._func.store_id casted = val._func.index else: - raise RuntimeError("foo") + raise RuntimeError("expecting param of type funcref got " + type(val).__name__) else: if isinstance(val, Val): if val._raw: