Skip to content

Commit

Permalink
Fixed better log output
Browse files Browse the repository at this point in the history
  • Loading branch information
rendom committed Nov 4, 2017
1 parent a6ad607 commit 4592788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/mpdbot/mpdbot.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ func main() {
var err error
stats, err = sqlite.New(config.StatsDB)
if err != nil {
log.Fatal(err)
log.Fatalf("Unable setup stats db (%v)", err.Error())
}

mpdClient, err = mpd.NewMpdClient(config.Mpd, config.MpdPassword)
if err != nil {
log.Fatal(err)
log.Fatalf("Unable to connect to mpd (%v)", err.Error())
return
}

Expand Down

0 comments on commit 4592788

Please sign in to comment.