From 637f58f95cedeaaa8fa658ae78e0f05b1f3e66c3 Mon Sep 17 00:00:00 2001 From: yory8 <> Date: Mon, 30 Sep 2019 19:14:54 +0200 Subject: [PATCH] fix(selector): let stderr of selector pass through to the console --- selector.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selector.go b/selector.go index c04e369..81f6c31 100644 --- a/selector.go +++ b/selector.go @@ -47,8 +47,8 @@ func selector(data []string, max int, tool string) (string, error) { processed, guide := preprocessData(data, true, false) cmd := exec.Cmd{Path: bin, Args: args, Stdin: strings.NewReader(strings.Join(processed, "\n"))} + cmd.Stderr = os.Stderr // let stderr pass to console b, err := cmd.Output() - // note: ignore stderr, necessary e.g. for wofi's gtk errors if err != nil { if err.Error() == "exit status 1" { // dmenu/rofi exits with this error when no selection done