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:
Rober Morales-Chaparro 2018-03-25 12:40:48 +02:00 committed by Rober Morales-Chaparro
parent 579107cf2e
commit 4f173262e4

View file

@ -206,7 +206,7 @@ func (p *Parser) overwriteStruct(v reflect.Value, fullpath string, path []string
fieldVal := reflect.New(sf.Type)
err := yaml.Unmarshal([]byte(payload), fieldVal.Interface())
if err != nil {
logrus.Warnf("Error parsing environment variable %s", fullpath)
logrus.Warnf("Error parsing environment variable %s: %s", fullpath, err)
return err
}
field.Set(reflect.Indirect(fieldVal))