MCPcopy
hub / github.com/devtron-labs/devtron / handleError

Function handleError

tests/e2e/BasicTestConf.go:111–117  ·  view source on GitHub ↗

Log the error and return boolean value indicating whether error occurred or not

(err error, testName string)

Source from the content-addressed store, hash-verified

109
110//Log the error and return boolean value indicating whether error occurred or not
111func handleError(err error, testName string) bool {
112 if(nil != err) {
113 util.GetLogger().Errorw("Error occurred while invoking api for test:" +testName, "err", err)
114 return true
115 }
116 return false
117}
118
119//support function to return auth token after log in
120//TODO : if token is valid, don't call api again, error handling in invoking functions

Callers 2

TestCheckListFunction · 0.85
getAuthTokenFunction · 0.85

Calls 1

GetLoggerFunction · 0.92

Tested by 1

TestCheckListFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…