MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / error

Function error

atomic-cli/src/output/colors.rs:211–213  ·  view source on GitHub ↗

Format an error message in red. Use this for error messages, failures, and critical issues. # Arguments `text` - The text to format # Returns A styled object that displays in red when printed. # Example ```rust,ignore eprintln!("{}", colors::error("Failed to read file")); ```

(text: D)

Source from the content-addressed store, hash-verified

209/// eprintln!("{}", colors::error("Failed to read file"));
210/// ```
211pub fn error<D: std::fmt::Display>(text: D) -> StyledObject<D> {
212 style(text).red()
213}
214
215/// Format an informational message in cyan.
216///

Callers 6

print_reportFunction · 0.85
walkthrough_textFunction · 0.85
finding_lineFunction · 0.85

Calls

no outgoing calls