mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-17 09:51:56 +00:00
⚡ Panic if WriteConfig
fails in pro
command
This commit is contained in:
parent
49ce15f9da
commit
b11619fbfa
@ -93,7 +93,10 @@ func runLicenseRecieverServer() {
|
|||||||
log.Info().Str("key", licenseKey).Msg("Received license:")
|
log.Info().Str("key", licenseKey).Msg("Received license:")
|
||||||
|
|
||||||
config.Config.License = licenseKey
|
config.Config.License = licenseKey
|
||||||
config.WriteConfig(&config.Config)
|
err = config.WriteConfig(&config.Config)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
connector.PostLicense(config.Config.License)
|
connector.PostLicense(config.Config.License)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user