diff --git a/main.go b/main.go index f5f1907..12d3b29 100644 --- a/main.go +++ b/main.go @@ -119,7 +119,8 @@ func setupRouter() *gin.Engine { req.SetBasicAuth(config.Opencast.Username, config.Opencast.Password) resp, err := client.Do(req) if err != nil { - log.Fatal(err) + c.JSON(http.StatusBadGateway, nil) + return } bodyText, err := ioutil.ReadAll(resp.Body) s := string(bodyText)