Skip to content

Commit 7154635

Browse files
authored
Add a comment
1 parent 234ab80 commit 7154635

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kyaml/fn/framework/processors.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ func LoadFunctionConfig(src *yaml.RNode, api interface{}) error {
176176
return schemaValidationError
177177
}
178178

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

0 commit comments

Comments
 (0)