mirror of
https://github.com/extism/extism.git
synced 2026-01-09 13:57:55 -05:00
fix(python): print error as string instead of bytes
This commit is contained in:
@@ -119,7 +119,7 @@ class Plugin:
|
||||
if rc != 0:
|
||||
error = lib.extism_error(self.plugin)
|
||||
if error != ffi.NULL:
|
||||
raise Error(ffi.string(error))
|
||||
raise Error(ffi.string(error).decode())
|
||||
raise Error(f"Error code: {rc}")
|
||||
|
||||
def call(self, name: str, data: Union[str, bytes]) -> bytes:
|
||||
|
||||
Reference in New Issue
Block a user