feat: more meaningful error message for kustomize issues:
* feat: more meaningful error message for kustomize issues:
a kustomize error is now surfaced correctly pinpointing to the
actual file yielding error.
* removed emoji and errorid. Plus downcased first word
as per other error messages Ive just looked at.
@@ -100,7 +100,7 @@ func DependenciesForKustomization(dir string) ([]string, error) {
content := kustomization{}
if err := yaml.Unmarshal(buf, &content); err != nil {
- return nil, err
+ return nil, fmt.Errorf("kustomization parse error in %v: %w", path, err)
}
deps = append(deps, path)
