FormatErrorMessage formats a simple error message (for stderr output)
(message string)
| 296 | |
| 297 | // FormatErrorMessage formats a simple error message (for stderr output) |
| 298 | func 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 |