From db29246883759ad64420a0646b688b8722d68e5e Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Fri, 28 Oct 2022 07:38:50 +0200 Subject: [PATCH] Fix subtitle error typo (#3056) --- internal/api/routes_scene.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/api/routes_scene.go b/internal/api/routes_scene.go index da76e3526..27693a517 100644 --- a/internal/api/routes_scene.go +++ b/internal/api/routes_scene.go @@ -377,14 +377,14 @@ func (rs sceneRoutes) Caption(w http.ResponseWriter, r *http.Request, lang strin sub, err := video.ReadSubs(caption.Path(s.Path)) if err != nil { logger.Warnf("error while reading subs: %v", err) - http.Error(w, readTxnErr.Error(), http.StatusInternalServerError) + http.Error(w, err.Error(), http.StatusInternalServerError) return } var b bytes.Buffer err = sub.WriteToWebVTT(&b) if err != nil { - http.Error(w, readTxnErr.Error(), http.StatusInternalServerError) + http.Error(w, err.Error(), http.StatusInternalServerError) return }