diff --git a/config/registry.go b/config/registry.go index e0128ad8..55a44abc 100644 --- a/config/registry.go +++ b/config/registry.go @@ -118,7 +118,11 @@ func Register(option *Option) error { } // return the validation-error from loadUnmappedValue here - return vErr + if vErr != nil { + return vErr + } + + return nil } func loadUnmappedValue(option *Option) (bool, *ValidationError) {