Skip to content

Commit

Permalink
Add external command error message to stderr in output view
Browse files Browse the repository at this point in the history
  • Loading branch information
paololazzari committed Oct 19, 2023
1 parent 2d437e3 commit 03e5d15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"golang.org/x/term"
)

const version = "0.2.0"
const version = "0.2.1"

func completionCommand() *cobra.Command {
return &cobra.Command{
Expand Down
2 changes: 2 additions & 0 deletions src/util/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package program

import (
"bytes"
"fmt"
"os/exec"
"runtime"
)
Expand Down Expand Up @@ -41,6 +42,7 @@ func Run(command string) (res string, err error) {

stdout, stderr, err := shellout(command, true)
if err != nil {
stderr = stderr + fmt.Sprint(err)
return stderr, nil
}

Expand Down

0 comments on commit 03e5d15

Please sign in to comment.