Skip to content

Commit

Permalink
fix: throw error if malformed yaml (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
raffis committed Feb 14, 2024
1 parent 84e0bd0 commit 318b3de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/build/kustomize.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func detectResources(fSys filesys.FileSystem, rf *resource.Factory, base string,
return err
}
if _, err := rf.SliceFromBytes(fContents); err != nil {
return nil
return err
}
paths = append(paths, normalizedPath)
return nil
Expand Down

0 comments on commit 318b3de

Please sign in to comment.