We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b2a1c4 commit 096e380Copy full SHA for 096e380
1 file changed
internal/style/style.go
@@ -21,6 +21,10 @@ var (
21
Bold(true)
22
23
// Error style for failures (red)
24
+ // Error handling pattern: Use Error.Render(message) for error text,
25
+ // or ErrorPrefix + message for icon-prefixed errors. For user-facing
26
+ // errors, prefer fmt.Printf("%s %s\n", ErrorPrefix, Error.Render(msg))
27
+ // to maintain consistent formatting across the codebase.
28
Error = lipgloss.NewStyle().
29
Foreground(ui.ColorFail).
30
0 commit comments