MCPcopy Create free account
hub / github.com/github/gh-aw / FormatErrorMessage

Function FormatErrorMessage

pkg/console/console.go:298–300  ·  view source on GitHub ↗

FormatErrorMessage formats a simple error message (for stderr output)

(message string)

Source from the content-addressed store, hash-verified

296
297// FormatErrorMessage formats a simple error message (for stderr output)
298func FormatErrorMessage(message string) string {
299 return applyStyle(styles.Error, "✗ ") + message
300}
301
302// FormatErrorChain formats an error and its full unwrapped chain in a reading-friendly way.
303// For wrapped errors (fmt.Errorf with %w), each level of the chain is shown on a new

Calls 1

applyStyleFunction · 0.85