aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-29 09:28:01 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-29 09:28:01 -0700
commit4c8a488e664c9fa05496b0195201fb6261de92e6 (patch)
tree4ac1f79ca61b26c0ac5498ac14ee89907f6781d4 /cmd
parentfix import paths for mpd-scrobbler (diff)
downloadx-4c8a488e664c9fa05496b0195201fb6261de92e6.tar.gz
check returned error when running the scrobbler
Diffstat (limited to '')
-rw-r--r--cmd/mpd-scrobbler/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/mpd-scrobbler/main.go b/cmd/mpd-scrobbler/main.go
index cce441d..30c3e5c 100644
--- a/cmd/mpd-scrobbler/main.go
+++ b/cmd/mpd-scrobbler/main.go
@@ -44,7 +44,10 @@ func main() {
}
}()
- s.Run()
+ err = s.Run()
+ if err != nil {
+ log.Fatalf("failed to run the scrobbler: %v", err)
+ }
}
func getDbPath() (string, error) {