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

Function renderErrorEvent

internal/cli/event_streams_subscribe.go:641–651  ·  view source on GitHub ↗
(cli *cli, s eventSummary)

Source from the content-addressed store, hash-verified

639}
640
641func renderErrorEvent(cli *cli, s eventSummary) {
642 ts := time.Now()
643 line := fmt.Sprintf(
644 "%s %s %s %s",
645 ansi.Faint(ts.Local().Format("15:04:05")),
646 ansi.Bold(colorForEventType(padRight("error", eventTypeColWidth))),
647 ansi.BrightRed(padRight(s.errorCode, eventSourceColWidth)),
648 s.errorMessage,
649 )
650 cli.renderer.Output(line)
651}
652
653// padRight pads s with spaces to width, or returns s unchanged if it already
654// exceeds width.

Callers 1

subscribeEventStreamCmdFunction · 0.85

Calls 6

FaintFunction · 0.92
BoldFunction · 0.92
BrightRedFunction · 0.92
colorForEventTypeFunction · 0.85
padRightFunction · 0.85
OutputMethod · 0.80

Tested by

no test coverage detected