MCPcopy Index your code
hub / github.com/devfile/api / checkForInvalidError

Function checkForInvalidError

pkg/validation/variables/utils.go:20–26  ·  view source on GitHub ↗

checkForInvalidError checks for InvalidKeysError and stores the key in the map

(invalidKeys map[string]bool, err error)

Source from the content-addressed store, hash-verified

18
19// checkForInvalidError checks for InvalidKeysError and stores the key in the map
20func checkForInvalidError(invalidKeys map[string]bool, err error) {
21 if verr, ok := err.(*InvalidKeysError); ok {
22 for _, key := range verr.Keys {
23 invalidKeys[key] = true
24 }
25 }
26}

Calls

no outgoing calls

Tested by 1

TestCheckForInvalidErrorFunction · 0.68