Skip to content

Commit 51b5f71

Browse files
committed
code: Show both stdout and stderr
Code blocks may try to print to stderr which is currently dropped.
1 parent 92be922 commit 51b5f71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/code/code.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func Execute(code Block) Result {
121121
}
122122
// execute and write output
123123
cmd := exec.Command(command[0], command[1:]...)
124-
out, err := cmd.Output()
124+
out, err := cmd.CombinedOutput()
125125
output.Write(out)
126126
if err != nil {
127127
output.Write([]byte(err.Error()))

0 commit comments

Comments
 (0)