Skip to content

Commit

Permalink
code: Show both stdout and stderr
Browse files Browse the repository at this point in the history
Code blocks may try to print to stderr which is currently dropped.
  • Loading branch information
mmlb committed Sep 17, 2022
1 parent 92be922 commit 51b5f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/code/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func Execute(code Block) Result {
}
// execute and write output
cmd := exec.Command(command[0], command[1:]...)
out, err := cmd.Output()
out, err := cmd.CombinedOutput()
output.Write(out)
if err != nil {
output.Write([]byte(err.Error()))
Expand Down

0 comments on commit 51b5f71

Please sign in to comment.