MCPcopy
hub / github.com/cli/cli / Error

Method Error

internal/run/run.go:79–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79func (e CmdError) Error() string {
80 msg := e.Stderr.String()
81 if msg != "" && !strings.HasSuffix(msg, "\n") {
82 msg += "\n"
83 }
84 return fmt.Sprintf("%s%s: %s", msg, e.Args[0], e.Err)
85}
86
87func (e CmdError) Unwrap() error {
88 return e.Err

Callers 14

MainFunction · 0.45
printErrorFunction · 0.45
TestGetOrCreateDeviceIDFunction · 0.45
TestIssueFeaturesFunction · 0.45
TestPullRequestFeaturesFunction · 0.45
TestRepositoryFeaturesFunction · 0.45
TestProjectFeaturesFunction · 0.45
TestGenManTreeFunction · 0.45
Test_repoFromURLFunction · 0.45
TestFromFullNameFunction · 0.45

Calls 1

StringMethod · 0.45

Tested by 12

TestGetOrCreateDeviceIDFunction · 0.36
TestIssueFeaturesFunction · 0.36
TestPullRequestFeaturesFunction · 0.36
TestRepositoryFeaturesFunction · 0.36
TestProjectFeaturesFunction · 0.36
TestGenManTreeFunction · 0.36
Test_repoFromURLFunction · 0.36
TestFromFullNameFunction · 0.36
TestParseAgentNameFunction · 0.36
TestHostnameValidatorFunction · 0.36