MCPcopy
hub / github.com/koderover/zadig / AddDesc

Method AddDesc

pkg/tool/errors/errors.go:87–96  ·  view source on GitHub ↗

AddDesc ...

(desc string)

Source from the content-addressed store, hash-verified

85
86// AddDesc ...
87func (e *HTTPError) AddDesc(desc string) *HTTPError {
88 // set default description error
89 e.desc = desc
90
91 if matched, _ := regexp.MatchString(".*E11000 duplicate.*", desc); matched {
92 e.desc = "mongo duplicate key error"
93 }
94
95 return e
96}
97
98// AddErr ...
99func (e *HTTPError) AddErr(err error) *HTTPError {

Callers 15

TestErrorsFunction · 0.95
CreateUserFunction · 0.80
UpdatePasswordFunction · 0.80
ResetFunction · 0.80
SignUpFunction · 0.80
checkLicenseFunction · 0.80
CreateRoleImplFunction · 0.80
UpdateRoleImplFunction · 0.80
OpenAPIListRolesFunction · 0.80
ListRolesFunction · 0.80
OpenAPIGetRoleFunction · 0.80
GetRoleFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestErrorsFunction · 0.76
TestConnectionFunction · 0.64
TestConnectionFunction · 0.64
TestJenkinsConnectionFunction · 0.64