aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarvey Tindall <hrfee@protonmail.ch>2022-01-24 14:30:25 +0000
committerHarvey Tindall <hrfee@protonmail.ch>2022-01-24 14:30:38 +0000
commit39f84a94acedf339320137c435515172cfb8261f (patch)
tree56ff72eba5c7376b3d8ef5193bfd9cb4a5ac5f8c
parent4b71fa248ad07e23a62d1d5811e163113e1baab1 (diff)
downloadwaybar-mpris-39f84a94acedf339320137c435515172cfb8261f.tar.gz
waybar-mpris-39f84a94acedf339320137c435515172cfb8261f.zip
write connection refused error to stderr
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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)
}