MCPcopy
hub / github.com/docker/compose / printError

Method printError

cmd/formatter/shortcut.go:50–59  ·  view source on GitHub ↗
(height int, info string)

Source from the content-addressed store, hash-verified

48}
49
50func (ke *KeyboardError) printError(height int, info string) {
51 if ke.shouldDisplay() {
52 errMessage := ke.err.Error()
53
54 moveCursor(height-1-extraLines(info)-extraLines(errMessage), 0)
55 clearLine()
56
57 fmt.Print(errMessage)
58 }
59}
60
61func (ke *KeyboardError) addError(prefix string, err error) {
62 ke.timeStart = time.Now()

Callers 1

printNavigationMenuMethod · 0.80

Calls 5

shouldDisplayMethod · 0.95
moveCursorFunction · 0.85
extraLinesFunction · 0.85
clearLineFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected