MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / formatInvalidKeyError

Function formatInvalidKeyError

pkg/config/validation.go:100–108  ·  view source on GitHub ↗
(keyPrefix string, key interface{})

Source from the content-addressed store, hash-verified

98}
99
100func formatInvalidKeyError(keyPrefix string, key interface{}) error {
101 var location string
102 if keyPrefix == "" {
103 location = "at top level"
104 } else {
105 location = fmt.Sprintf("in %s", keyPrefix)
106 }
107 return errors.Errorf("non-string key %s: %#v", location, key)
108}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected