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

Method Error

pkg/cmd/project/shared/queries/resolve.go:35–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (e *OptionNotFoundError) Error() string {
36 if len(e.Candidates) == 0 {
37 return fmt.Sprintf("option %q not found on field %q; the field has no options", e.Name, e.FieldName)
38 }
39 return fmt.Sprintf("option %q not found on field %q; available options: %s", e.Name, e.FieldName, strings.Join(e.Candidates, ", "))
40}
41
42// OptionAmbiguousError is returned when more than one single-select option
43// shares the given name. Candidates lists the option IDs of the matches.

Callers 15

TestNewCmdCloseFunction · 0.45
TestNewCmdLinkFunction · 0.45
TestNewCmdCopyFunction · 0.45
TestNewCmdMarkTemplateFunction · 0.45
TestNewCmdDeleteFieldFunction · 0.45
TestNewCmdListFunction · 0.45
TestNewCmdDeleteFunction · 0.45
TestNewCmdviewFunction · 0.45
TestNewCmdCreateFieldFunction · 0.45
TestNewCmdDeleteItemFunction · 0.45
TestNewCmdaddItemFunction · 0.45
TestNewCmdListFunction · 0.45

Calls 1

JoinMethod · 0.80

Tested by 15

TestNewCmdCloseFunction · 0.36
TestNewCmdLinkFunction · 0.36
TestNewCmdCopyFunction · 0.36
TestNewCmdMarkTemplateFunction · 0.36
TestNewCmdDeleteFieldFunction · 0.36
TestNewCmdListFunction · 0.36
TestNewCmdDeleteFunction · 0.36
TestNewCmdviewFunction · 0.36
TestNewCmdCreateFieldFunction · 0.36
TestNewCmdDeleteItemFunction · 0.36
TestNewCmdaddItemFunction · 0.36
TestNewCmdListFunction · 0.36