aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-28 13:32:48 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-28 13:32:48 +0200
commita5a8100344c95426aba2562d3a68c981b17a71c8 (patch)
treef00ab94a58e2d14867932c00d14ee9ba91eb048e
parent3f2e2147a2758bb49a06a85c6e2fc6a07fb02297 (diff)
downloadWRMS-a5a8100344c95426aba2562d3a68c981b17a71c8.tar.gz
WRMS-a5a8100344c95426aba2562d3a68c981b17a71c8.zip
log the output of a failed mpv execution
-rw-r--r--player.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/player.go b/player.go
index e7d1dd9..b2539dd 100644
--- a/player.go
+++ b/player.go
@@ -61,9 +61,10 @@ func (player *Player) Play(song *Song) {
}
func (player *Player) runMpv() {
- _, err := player.mpv.CombinedOutput()
+ output, err := player.mpv.CombinedOutput()
if err != nil {
- llog.Fatal(err.Error())
+ llog.Debug("Mpv output: %s", output)
+ llog.Fatal("Mpv failed with: %s", err.Error())
}
wrms := player.wrms