🐛 Replace another panic with a error log in pro command

This commit is contained in:
M. Mert Yildiran 2023-03-19 06:08:55 +03:00
parent b90edfe1fb
commit 08f42a7b96
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461

View File

@ -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)