MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / fail

Method fail

cli/src/ui.rs:155–162  ·  view source on GitHub ↗

Stop the spinner and print an `(unsuccessful) {msg}` line in red.

(self, msg: &str)

Source from the content-addressed store, hash-verified

153
154 /// Stop the spinner and print an `(unsuccessful) {msg}` line in red.
155 pub fn fail(self, msg: &str) {
156 drop(self);
157 if plain() {
158 eprintln!(" (unsuccessful) {msg}");
159 } else {
160 eprintln!(" {} {msg}", "(unsuccessful)".red());
161 }
162 }
163}
164
165impl Drop for Spinner {

Callers 1

runFunction · 0.80

Calls 1

plainFunction · 0.85

Tested by

no test coverage detected