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

Method Error

git/errors.go:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (ge *GitError) Error() string {
31 if ge.Stderr == "" {
32 return fmt.Sprintf("failed to run git: %v", ge.err)
33 }
34 return fmt.Sprintf("failed to run git: %s", ge.Stderr)
35}
36
37func (ge *GitError) Unwrap() error {
38 return ge.err

Callers 8

TestOutputFunction · 0.95
isAccessDeniedFunction · 0.45
TestParseURLFunction · 0.45
TestPushDefaultFunction · 0.45
TestClientRemoteURLFunction · 0.45
TestClientIsIgnoredFunction · 0.45
Test_Remotes_FindByNameFunction · 0.45
Test_Remotes_FindByRepoFunction · 0.45

Calls

no outgoing calls

Tested by 7

TestOutputFunction · 0.76
TestParseURLFunction · 0.36
TestPushDefaultFunction · 0.36
TestClientRemoteURLFunction · 0.36
TestClientIsIgnoredFunction · 0.36
Test_Remotes_FindByNameFunction · 0.36
Test_Remotes_FindByRepoFunction · 0.36