mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-17 09:51:56 +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) {
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user