MCPcopy Index your code
hub / github.com/cloudfoundry/cli / PrintError

Method PrintError

api/logcache/log_cache_client.go:35–42  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

33}
34
35func (p DebugPrinter) PrintError(err error) {
36 for _, output := range p.outputs {
37 _ = output.Start() // nolint
38 _ = output.DisplayType("ERROR", time.Now()) // nolint
39 _ = output.DisplayDump(err.Error()) // nolint
40 _ = output.Stop() // nolint
41 }
42}
43
44func (p DebugPrinter) PrintRequest(req *http.Request) {
45 for _, output := range p.outputs {

Callers 1

DoMethod · 0.80

Calls 6

StartMethod · 0.65
DisplayTypeMethod · 0.65
NowMethod · 0.65
DisplayDumpMethod · 0.65
ErrorMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected