mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 23:36:18 +08:00
Set the validation error when err == nil too (#2575)
This commit is contained in:
parent
900949dc39
commit
ad551a0e6a
|
@ -51,8 +51,8 @@ func ValidateLicense() (err error) {
|
|||
defer func() {
|
||||
if err != nil {
|
||||
err = fmt.Errorf("%w: %s", errValidation, err.Error())
|
||||
servercfg.ErrLicenseValidation = err
|
||||
}
|
||||
servercfg.ErrLicenseValidation = err
|
||||
}()
|
||||
|
||||
licenseKeyValue := servercfg.GetLicenseKey()
|
||||
|
|
Loading…
Reference in a new issue