MCPcopy Index your code
hub / github.com/ddev/ddev / Failed

Function Failed

pkg/util/utils.go:68–78  ·  view source on GitHub ↗

Failed will print a red error message and exit with failure.

(format string, a ...any)

Source from the content-addressed store, hash-verified

66
67// Failed will print a red error message and exit with failure.
68func Failed(format string, a ...any) {
69 format = ColorizeText(format, "red")
70 if a != nil {
71 // output.UserOut.Fatalf(format, a...)
72 output.UserErr.Fatalf(format, a...)
73 // output.UserOut.WithField("level", "fatal").Fatalf(format, a...)
74 } else {
75 output.UserErr.Fatal(format)
76 // output.UserOut.WithField("level", "fatal").Fatal(format)
77 }
78}
79
80// Error will print a red error message but will not exit.
81func Error(format string, a ...any) {

Callers 15

PushGlobalTraefikConfigFunction · 0.92
configureTraefikForAppFunction · 0.92
failOnRosettaFunction · 0.92
GetInstalledAddonsFunction · 0.92
RemoveAddonFunction · 0.92
addUploadDirMethod · 0.92
initFunction · 0.92
fixupComposeYamlFunction · 0.92
GetInternalPortFunction · 0.92

Calls 1

ColorizeTextFunction · 0.85

Tested by 1

TestMainFunction · 0.74