From 4f173262e4d480e9701ff0f3994f90fdc1f1f1ae Mon Sep 17 00:00:00 2001 From: Rober Morales-Chaparro Date: Sun, 25 Mar 2018 12:40:48 +0200 Subject: [PATCH] patch-1 - adding more info to the error message Signed-off-by: Rober Morales-Chaparro Signed-off-by: Rober Morales-Chaparro --- configuration/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/parser.go b/configuration/parser.go index 1306b0c20..25023092c 100644 --- a/configuration/parser.go +++ b/configuration/parser.go @@ -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))