mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-19 10:48:59 +00:00
🐛 Replace another panic
with a error log in pro
command
This commit is contained in:
parent
b90edfe1fb
commit
08f42a7b96
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user