MCPcopy Index your code
hub / github.com/coder/coder / Error

Function Error

cli/cliui/log.go:64–71  ·  view source on GitHub ↗

Error writes a log to the writer provided.

(wtr io.Writer, header string, lines ...string)

Source from the content-addressed store, hash-verified

62
63// Error writes a log to the writer provided.
64func Error(wtr io.Writer, header string, lines ...string) {
65 _, _ = fmt.Fprint(wtr, cliMessage{
66 Style: DefaultStyles.Error,
67 Prefix: "ERROR: ",
68 Header: header,
69 Lines: lines,
70 }.String())
71}
72
73// Errorf writes a formatted log to the writer provided.
74func Errorf(wtr io.Writer, fmtStr string, args ...interface{}) {

Callers 4

installCompletionFunction · 0.92
summarizeBundleFunction · 0.92
ErrorfFunction · 0.70
getMaxDeadlineFunction · 0.50

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected