fix error message

This commit is contained in:
Joel Wetzell
2026-03-08 13:36:06 -05:00
parent 8c4f0591e1
commit 361b07ec00
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ func (sw *ScriptWASM) Process(ctx context.Context, payload any) (any, error) {
payloadBytes, ok := GetAnyAs[[]byte](payload)
if !ok {
return nil, fmt.Errorf("script.wasm can only operator on byte array")
return nil, fmt.Errorf("script.wasm can only process a byte array")
}
program, err := sw.Program.Instance(ctx, extism.PluginInstanceConfig{})

View File

@@ -139,7 +139,7 @@ func TestBadScriptWASM(t *testing.T) {
"enableWasi": true,
},
payload: "hello",
errorString: "script.wasm can only operator on byte array",
errorString: "script.wasm can only process a byte array",
},
{
name: "function not found in module",