From c7d77b25858792eeccdd4adf9eee647c48909047 Mon Sep 17 00:00:00 2001 From: Marton Soos Date: Tue, 12 Mar 2024 10:08:39 +0100 Subject: [PATCH] Update comment Co-authored-by: zach --- extism.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extism.go b/extism.go index 695adab..9364786 100644 --- a/extism.go +++ b/extism.go @@ -540,7 +540,7 @@ func (plugin *Plugin) GetError() string { return plugin.GetErrorWithContext(context.Background()) } -// GetError retrieves the error message from the last WebAssembly function call, if any. +// GetErrorWithContext retrieves the error message from the last WebAssembly function call. func (plugin *Plugin) GetErrorWithContext(ctx context.Context) string { errOffs, err := plugin.Runtime.Extism.ExportedFunction("error_get").Call(ctx) if err != nil {