Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
semvis123 committed Aug 9, 2023
1 parent 3a761d7 commit c77036d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catdoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func callWASMFunc(funcName string, fs fs.FS) (string, error) {
_, err = mod.ExportedFunction(funcName).Call(ctx)
if err != nil {
if exitError, ok := err.(*sys.ExitError); ok && exitError.ExitCode() != 0 {
return "", fmt.Errorf("%s %w", outBuf.String(), exitError)
return "", fmt.Errorf("%s %w", errBuf.String(), exitError)
}
}

Expand Down

0 comments on commit c77036d

Please sign in to comment.