Error type MalformedYamlError created. api.internal.target.kusttarget.accumulateResources checks for this new error type

This commit is contained in:
Mohd Bilal
2022-02-27 07:21:16 +00:00
parent 6950a0d246
commit bd05631887
3 changed files with 25 additions and 1 deletions

View File

@@ -294,7 +294,7 @@ func (r *ByteReader) decode(originalYAML string, index int, decoder *yaml.Decode
return nil, io.EOF
}
if err != nil {
return nil, errors.Wrap(err)
return nil, errors.WrapPrefixf(err, "MalformedYAMLError")
}
if yaml.IsYNodeEmptyDoc(node) {