diff --git a/cmd/pro.go b/cmd/pro.go index 2efb95214..e4dfee6ff 100644 --- a/cmd/pro.go +++ b/cmd/pro.go @@ -98,7 +98,9 @@ func runLicenseRecieverServer() { ginApp.POST("/", func(c *gin.Context) { data, err := ioutil.ReadAll(c.Request.Body) if err != nil { - panic(err) + log.Error().Err(err).Send() + c.AbortWithStatus(http.StatusBadRequest) + return } licenseKey := string(data)