print yaml content on error in fromYaml (#765)

This commit is contained in:
a-hat 2019-07-30 03:43:30 +02:00 committed by KUOKA Yusuke
parent fe5102e777
commit e5038fb04f
1 changed files with 1 additions and 1 deletions

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
}