mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
fix error message
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user