MCPcopy Create free account
hub / github.com/ddev/ddev / Error

Function Error

pkg/util/utils.go:81–88  ·  view source on GitHub ↗

Error will print a red error message but will not exit.

(format string, a ...any)

Source from the content-addressed store, hash-verified

79
80// Error will print a red error message but will not exit.
81func Error(format string, a ...any) {
82 format = ColorizeText(format, "red")
83 if a != nil {
84 output.UserErr.Errorf(format, a...)
85 } else {
86 output.UserErr.Error(format)
87 }
88}
89
90// Warning will present the user with warning text.
91func Warning(format string, a ...any) {

Callers 14

GetSSHAuthStatusFunction · 0.92
StartMethod · 0.92
DockerEnvMethod · 0.92
ListFunction · 0.92
CheckAvailableSpaceFunction · 0.92
stop.goFile · 0.92
handleGlobalConfigFunction · 0.92
share.goFile · 0.92
exec.goFile · 0.92
showAllMutagenVolumesFunction · 0.92

Calls 3

ColorizeTextFunction · 0.85
ErrorfMethod · 0.80
ErrorMethod · 0.80

Tested by

no test coverage detected