MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / fatalError

Function fatalError

utils.go:15–27  ·  view source on GitHub ↗

print fatal error and force quite app

(err error)

Source from the content-addressed store, hash-verified

13
14// print fatal error and force quite app
15func fatalError(err error) {
16 if err != nil {
17 color.Set(color.FgRed)
18 fmt.Println(err)
19 color.Unset()
20 if app != nil {
21 app.Stop()
22 }
23 if !debug {
24 os.Exit(1)
25 }
26 }
27}
28
29// print useful info and force quite app
30func usefulInfo(s string) {

Callers 5

loadFileToBufferFunction · 0.85
loadPipeToBufferFunction · 0.85
S2FFunction · 0.85
startAsyncUpdateHandlerFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected