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
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue