Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update internal/ext/wasm/wasm.go
Co-authored-by: Anuraag Agrawal <[email protected]>
  • Loading branch information
kyleconroy and anuraaga authored Dec 6, 2023
commit 7517d032de6f04dbba8475be20c702ee9e9cce86
6 changes: 3 additions & 3 deletions internal/ext/wasm/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ func checkError(err error, stderr io.Reader) error {
}

// Print WASM stdout
stderrBlob, rferr := io.ReadAll(stderr)
if rferr == nil && len(stderrBlob) > 0 {
return errors.New(string(stderrBlob))
stderrBlob := stderr.String()
if len(stderrBlob) > 0 {
return errors.New(stderrBlob)
}
return fmt.Errorf("call: %w", err)
}