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

Function print_error

atomic-cli/src/output/mod.rs:131–137  ·  view source on GitHub ↗

Print an error message to stderr. The message is formatted in red with an X prefix. # Arguments `message` - The message to print # Example ```rust,ignore print_error("Failed to read file"); // Output: ✗ Failed to read file ```

(message: &str)

Source from the content-addressed store, hash-verified

129/// // Output: ✗ Failed to read file
130/// ```
131pub fn print_error(message: &str) {
132 crate::logging::printed(crate::logging::Printed::Error, message);
133 if live::capture(live::Kind::Error, message) {
134 return;
135 }
136 eprintln!("{} {}", error("✗"), error(message));
137}
138
139/// Print a warning message to stderr.
140///

Callers 12

mainFunction · 0.85
agent_explainFunction · 0.85
runMethod · 0.85
map_project_errorFunction · 0.85
divergence_errorMethod · 0.85
runMethod · 0.85
executeMethod · 0.85
runMethod · 0.85
run_manifestMethod · 0.85
runMethod · 0.85
run_manifestMethod · 0.85
runMethod · 0.85

Calls 2

printedFunction · 0.85
captureFunction · 0.70

Tested by

no test coverage detected