← Back to issue list

Error message formatting

View original Github issue

Metadata

Project
craft-cli
Number
#31
Type
issue
State
open
Author
cmatsuoka
Labels
—
Created
Updated
Closed
—

Current evaluation

Open feature request to customize Emitter.error output with a prefix and optional color; prefix support is absent, while warning output already accepts a prefix.

Suggested action: keep open

Reason: Emitter.error() accepts a CraftError and report_error() emits str(error) unchanged, so the requested "Error: " prefix is not implemented. The comment explicitly endorses adding red output with NO_COLOR support; the prefix change is straightforward, but color requires additional terminal and platform behavior decisions.

Evaluated by: mr-cal-bot

Impact: 28 Quick Win: 11 Complexity: 43 Confidence: 90 Actionability: 69

Issue body

The emitter `error()` method could offer a way for the user to format the error message e.g. adding a prefix such as "Error: ".

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 28
Quick Win: 11
Complexity: 43
Confidence: 90
Actionability: 69
keep open Open feature request to customize Emitter.error output with a prefix and optional color; prefix support is absent, while warning output already accepts a prefix.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 17
Complexity: 40
Confidence: 75
Actionability: 70
keep open Feature request to add error message prefix customization and colored output with NO_COLOR support to the Emitter.error() method.
qwen/qwen3.8-27b
Impact: 25
Quick Win: 18
Staleness: 55
Complexity: 30
Confidence: 60
Support Request: 10
needs triage Feature request to let the emitter error() method format error messages (e.g. add an 'Error: ' prefix) and optionally output them in red, respecting no-color.org. Open, unlabelled, with one maintainer comment endorsing the idea; no implementation yet.
qwen/qwen3.6-35b-a3b
Staleness: 80
Complexity: 25
Confidence: 80
Support Request: 10
needs triage Feature request to add formatting options (prefixes, colors) to the emitter error() method. Unlabelled, unassessed, and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 20
Confidence: 80
Support Request: 10
needs triage Suggests adding formatting options to the emitter error() method, including customizable prefixes and optional colored output. Currently unlabelled and inactive for over a year.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.