diff --git a/internal/http/dj_handlers.go b/internal/http/dj_handlers.go index d0d7aaf..6def03b 100644 --- a/internal/http/dj_handlers.go +++ b/internal/http/dj_handlers.go @@ -60,6 +60,8 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) { bs, be, err := oggtag.ReadFile(nxt) if err != nil { log.Println("cannot read an OGG file", nxt, ":", err) + http.Error(w, "cannot read an OGG file", http.StatusInternalServerError) + return } song := radio.Song_{