print yaml content on error in fromYaml (#765)

This commit is contained in:
a-hat
2019-07-30 10:43:30 +09:00
committed by KUOKA Yusuke
parent fe5102e777
commit e5038fb04f
+1 -1
View File
@@ -149,7 +149,7 @@ func FromYaml(str string) (Values, error) {
m := Values{}
if err := yaml.Unmarshal([]byte(str), &m); err != nil {
return nil, err
return nil, fmt.Errorf("%s, offending yaml: %s", err, str)
}
return m, nil
}