MCPcopy Create free account
hub / github.com/google/pprof / errorCatcher

Struct errorCatcher

internal/driver/webui.go:67–70  ·  view source on GitHub ↗

errorCatcher is a UI that captures errors for reporting to the browser.

Source from the content-addressed store, hash-verified

65
66// errorCatcher is a UI that captures errors for reporting to the browser.
67type errorCatcher struct {
68 plugin.UI
69 errors []string
70}
71
72func (ec *errorCatcher) PrintErr(args ...interface{}) {
73 ec.errors = append(ec.errors, strings.TrimSuffix(fmt.Sprintln(args...), "\n"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected