MCPcopy Create free account
hub / github.com/auth0/auth0-cli / renderErrorMessage

Function renderErrorMessage

internal/cli/root.go:231–244  ·  view source on GitHub ↗
(display *display.Renderer, errorMessage string)

Source from the content-addressed store, hash-verified

229}
230
231func renderErrorMessage(display *display.Renderer, errorMessage string) {
232 display.Heading(ansi.Red("error"))
233
234 rawErrorMessage := []rune(errorMessage)
235 humanReadableErrorMessage := string(
236 append(
237 []rune{unicode.ToUpper(rawErrorMessage[0])},
238 rawErrorMessage[1:]...,
239 ),
240 ) + "."
241
242 display.Errorf(humanReadableErrorMessage)
243 display.Newline()
244}
245
246func trackCommandOutcome(cli *cli, executionErr error) {
247 if cli.tracker == nil {

Callers 1

ExecuteFunction · 0.85

Calls 4

RedFunction · 0.92
HeadingMethod · 0.80
ErrorfMethod · 0.80
NewlineMethod · 0.80

Tested by

no test coverage detected