diff options
author | Valery Piashchynski <[email protected]> | 2019-11-17 15:32:26 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2019-11-17 15:32:26 +0300 |
commit | 492faef8e51fce243216758baa8c16b4173603df (patch) | |
tree | da6376fba9a9af3358017dcbd5034677192f407b /service/container.go | |
parent | b81f2b121eb3a49372662d0bc9c19c53366f33fc (diff) |
complete half
Diffstat (limited to 'service/container.go')
-rw-r--r-- | service/container.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/service/container.go b/service/container.go index a21b49b4..b543ccb6 100644 --- a/service/container.go +++ b/service/container.go @@ -263,7 +263,10 @@ func (c *container) resolveValues(s interface{}, m reflect.Method, cfg Config) ( sc := reflect.New(v.Elem()) if dsc, ok := sc.Interface().(DefaultsConfig); ok { - dsc.InitDefaults() + err := dsc.InitDefaults() + if err != nil { + return nil, err + } if cfg == nil { values = append(values, sc) continue |