write connection refused error to stderr
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Harvey Tindall 2022-01-24 14:30:25 +00:00
parent 4b71fa248a
commit 39f84a94ac
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -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)
}