Skip to content

Commit c77036d

Browse files
committed
Fix error messages
1 parent 3a761d7 commit c77036d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

catdoc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func callWASMFunc(funcName string, fs fs.FS) (string, error) {
133133
_, err = mod.ExportedFunction(funcName).Call(ctx)
134134
if err != nil {
135135
if exitError, ok := err.(*sys.ExitError); ok && exitError.ExitCode() != 0 {
136-
return "", fmt.Errorf("%s %w", outBuf.String(), exitError)
136+
return "", fmt.Errorf("%s %w", errBuf.String(), exitError)
137137
}
138138
}
139139

0 commit comments

Comments
 (0)