Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
crenshaw-dev authored Oct 24, 2023
1 parent 234ab80 commit 7154635
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kyaml/fn/framework/processors.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ func LoadFunctionConfig(src *yaml.RNode, api interface{}) error {
return schemaValidationError
}

// combineErrors produces a CompositeValidationError for the given schemaErr and givenErr.
// If either is already a CompsiteError, its constituent errors become part of the new
// composite error. If both given errors are nil, this function returns nil.
func combineErrors(schemaErr, customErr error) error {
combined := validationErrors.CompositeValidationError()
if compositeSchemaErr, ok := schemaErr.(*validationErrors.CompositeError); ok {
Expand Down

0 comments on commit 7154635

Please sign in to comment.