improve error messages

This commit is contained in:
koba1t
2023-01-07 03:30:16 +09:00
parent 5fed0f76c8
commit 6489e35b7c
6 changed files with 7 additions and 6 deletions

View File

@@ -105,7 +105,7 @@ func (lc *localizer) load() (*types.Kustomization, string, error) {
var kust types.Kustomization
err = (&kust).Unmarshal(content)
if err != nil {
return nil, "", errors.WrapPrefixf(err, "invalid kustomization")
return nil, "", errors.Wrap(err)
}
// Localize intentionally does not replace legacy fields to return a localized kustomization