Skip to content

Commit 7517d03

Browse files
kyleconroyanuraaga
andauthored
Update internal/ext/wasm/wasm.go
Co-authored-by: Anuraag Agrawal <anuraaga@gmail.com>
1 parent 2878527 commit 7517d03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/ext/wasm/wasm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ func checkError(err error, stderr io.Reader) error {
277277
}
278278

279279
// Print WASM stdout
280-
stderrBlob, rferr := io.ReadAll(stderr)
281-
if rferr == nil && len(stderrBlob) > 0 {
282-
return errors.New(string(stderrBlob))
280+
stderrBlob := stderr.String()
281+
if len(stderrBlob) > 0 {
282+
return errors.New(stderrBlob)
283283
}
284284
return fmt.Errorf("call: %w", err)
285285
}

0 commit comments

Comments
 (0)