fix error message

This commit is contained in:
Joel Wetzell
2026-03-01 15:00:09 -06:00
parent c298f63ffc
commit ccac116f8d
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ func (p Params) GetBool(key string) (bool, error) {
boolValue, ok := value.(bool) boolValue, ok := value.(bool)
if !ok { if !ok {
return false, errors.New("not a bool") return false, errors.New("not a boolean")
} }
return boolValue, nil return boolValue, nil
} }

View File

@@ -130,7 +130,7 @@ func TestBadScriptWASM(t *testing.T) {
"enableWasi": "true", "enableWasi": "true",
}, },
payload: []byte("hello"), payload: []byte("hello"),
errorString: "script.wasm enableWasi must be a boolean", errorString: "script.wasm enableWasi error: not a boolean",
}, },
{ {
name: "non-byte slice input", name: "non-byte slice input",