MCPcopy Create free account
hub / github.com/cli/cli / Error

Method Error

pkg/cmd/project/shared/queries/resolve_fields.go:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func (e *FieldNotFoundError) Error() string {
40 if len(e.Candidates) == 0 {
41 return fmt.Sprintf("field %q not found in project; the project has no fields", e.Name)
42 }
43 return fmt.Sprintf("field %q not found in project; available fields: %s", e.Name, strings.Join(e.Candidates, ", "))
44}
45
46// FieldAmbiguousError is returned when more than one field shares the given
47// name. Candidates lists the node IDs of the matching fields.

Callers

nothing calls this directly

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected