patch-1 - adding more info to the error message
Signed-off-by: Rober Morales-Chaparro <rober.morales@rstor.io> Signed-off-by: Rober Morales-Chaparro <rober.morales@ebury.com>
This commit is contained in:
parent
579107cf2e
commit
4f173262e4
@ -206,7 +206,7 @@ func (p *Parser) overwriteStruct(v reflect.Value, fullpath string, path []string
|
|||||||
fieldVal := reflect.New(sf.Type)
|
fieldVal := reflect.New(sf.Type)
|
||||||
err := yaml.Unmarshal([]byte(payload), fieldVal.Interface())
|
err := yaml.Unmarshal([]byte(payload), fieldVal.Interface())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Warnf("Error parsing environment variable %s", fullpath)
|
logrus.Warnf("Error parsing environment variable %s: %s", fullpath, err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
field.Set(reflect.Indirect(fieldVal))
|
field.Set(reflect.Indirect(fieldVal))
|
||||||
|
Loading…
Reference in New Issue
Block a user