MCPcopy Create free account
hub / github.com/compose-spec/compose-go / formatInvalidKeyError

Function formatInvalidKeyError

loader/loader.go:926–934  ·  view source on GitHub ↗
(keyPrefix string, key interface{})

Source from the content-addressed store, hash-verified

924}
925
926func formatInvalidKeyError(keyPrefix string, key interface{}) error {
927 var location string
928 if keyPrefix == "" {
929 location = "at top level"
930 } else {
931 location = fmt.Sprintf("in %s", keyPrefix)
932 }
933 return fmt.Errorf("non-string key %s: %#v", location, key)
934}
935
936// Windows path, c:\\my\\path\\shiny, need to be changed to be compatible with
937// the Engine. Volume path are expected to be linux style /c/my/path/shiny/

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…