From 39f84a94acedf339320137c435515172cfb8261f Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Mon, 24 Jan 2022 14:30:25 +0000 Subject: write connection refused error to stderr --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 3d3fabb..6a16b88 100644 --- a/main.go +++ b/main.go @@ -600,7 +600,7 @@ func main() { } // When waybar-mpris is already running, we attach to its output instead of launching a whole new instance. } else if err := duplicateOutput(); err != nil { - os.Stdout.WriteString("Couldn't dial socket, deleting instead: " + err.Error()) + os.Stderr.WriteString("Couldn't dial socket, deleting instead: " + err.Error()) os.Remove(SOCK) os.Remove(OUTFILE) } -- cgit v1.2.3