Fix error handling when setting single config options

This commit is contained in:
Daniel 2022-03-01 15:49:16 +01:00
parent 50b87e0240
commit f739d08a40

View file

@ -120,6 +120,8 @@ func setConfigOption(key string, value interface{}, push bool) (err error) {
valueCache, vErr := validateValue(option, value)
if vErr == nil {
option.activeValue = valueCache
} else {
err = vErr
}
}
@ -159,6 +161,8 @@ func setDefaultConfigOption(key string, value interface{}, push bool) (err error
valueCache, vErr := validateValue(option, value)
if vErr == nil {
option.activeDefaultValue = valueCache
} else {
err = vErr
}
}