MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / showWarning

Function showWarning

src/screen.go:119–133  ·  view source on GitHub ↗
(errCode int)

Source from the content-addressed store, hash-verified

117}
118
119func showWarning(errCode int) {
120
121 var errMsg = getErrMsg(errCode)
122 var logMsg = fmt.Sprintf("[%s] [WARNING] %s", System.Name, errMsg)
123 var mutex = sync.RWMutex{}
124
125 printLogOnScreen(logMsg, "warning")
126
127 mutex.Lock()
128 WebScreenLog.Log = append(WebScreenLog.Log, time.Now().Format("2006-01-02 15:04:05")+" "+logMsg)
129 WebScreenLog.Warnings++
130 mutex.Unlock()
131
132 return
133}
134
135// ShowError : Zeigt die Fehlermeldungen in der Konsole
136func ShowError(err error, errCode int) {

Callers 8

getProviderDataFunction · 0.85
BinaryUpdateFunction · 0.85
createXEPGMappingFunction · 0.85
cleanupXEPGFunction · 0.85
InitFunction · 0.85
updateServerSettingsFunction · 0.85
buildDatabaseDVRFunction · 0.85
loadSettingsFunction · 0.85

Calls 2

getErrMsgFunction · 0.85
printLogOnScreenFunction · 0.85

Tested by

no test coverage detected