fix: handle backend errors and driver import

This commit is contained in:
2026-05-24 22:46:02 +02:00
parent 05e963151c
commit 4606c790f1
3 changed files with 5 additions and 0 deletions

View File

@@ -238,6 +238,8 @@ func (h *PlaybackHandler) HandleEpisodeThumbnails(c *gin.Context) {
allEpisodes, err := h.animeSvc.GetAllEpisodes(c.Request.Context(), id)
if err != nil {
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
return
}
anime, _ := h.animeSvc.GetAnimeByID(c.Request.Context(), id)