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

Function ShowError

src/screen.go:136–151  ·  view source on GitHub ↗

ShowError : Zeigt die Fehlermeldungen in der Konsole

(err error, errCode int)

Source from the content-addressed store, hash-verified

134
135// ShowError : Zeigt die Fehlermeldungen in der Konsole
136func ShowError(err error, errCode int) {
137
138 var mutex = sync.RWMutex{}
139
140 var errMsg = getErrMsg(errCode)
141 var logMsg = fmt.Sprintf("[%s] [ERROR] %s (%s) - EC: %d", System.Name, err, errMsg, errCode)
142
143 printLogOnScreen(logMsg, "error")
144
145 mutex.Lock()
146 WebScreenLog.Log = append(WebScreenLog.Log, time.Now().Format("2006-01-02 15:04:05")+" "+logMsg)
147 WebScreenLog.Errors++
148 mutex.Unlock()
149
150 return
151}
152
153func printLogOnScreen(logMsg string, logType string) {
154

Callers 15

mainFunction · 0.92
getProviderDataFunction · 0.85
ThreadfinAutoBackupFunction · 0.85
ThreadfinBackupFunction · 0.85
ThreadfinRestoreFunction · 0.85
SSDPFunction · 0.85
readStringFromFileFunction · 0.85
parseTemplateFunction · 0.85
BinaryUpdateFunction · 0.85
buildXEPGFunction · 0.85
createXEPGMappingFunction · 0.85
createXEPGDatabaseFunction · 0.85

Calls 2

getErrMsgFunction · 0.85
printLogOnScreenFunction · 0.85

Tested by

no test coverage detected