mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-05 04:23:09 +00:00
🐛 Replace another panic
with a error log in pro
command
This commit is contained in:
@@ -98,7 +98,9 @@ func runLicenseRecieverServer() {
|
|||||||
ginApp.POST("/", func(c *gin.Context) {
|
ginApp.POST("/", func(c *gin.Context) {
|
||||||
data, err := ioutil.ReadAll(c.Request.Body)
|
data, err := ioutil.ReadAll(c.Request.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
log.Error().Err(err).Send()
|
||||||
|
c.AbortWithStatus(http.StatusBadRequest)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
licenseKey := string(data)
|
licenseKey := string(data)
|
||||||
|
Reference in New Issue
Block a user