Skip to content

Commit

Permalink
chore: update default error message (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Jan 4, 2024
1 parent a80324c commit 7890a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extism.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func (plugin *Plugin) Call(name string, data []byte) (uint32, []byte, error) {
if rc != 0 {
errMsg := plugin.GetError()
if errMsg == "" {
errMsg = "Call failed"
errMsg = "Encountered an unknown error in call to Extism plugin function " + name
}
return rc, []byte{}, errors.New(errMsg)
}
Expand Down

0 comments on commit 7890a14

Please sign in to comment.