mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-28 21:50:26 +08:00
cli: Improve error output of commands
Previously, we would sometimes get very repetitive error messages. This change prevents that from happening.
This commit is contained in:
@@ -130,7 +130,7 @@ pub fn fail(header: &str, error: &anyhow::Error) {
|
||||
let separator = if err.contains('\n') { ":\n" } else { ": " };
|
||||
|
||||
println!(
|
||||
"{ERROR_PREFIX} {}{}{error:#}",
|
||||
"{ERROR_PREFIX} {}{}{error}",
|
||||
Paint::red(header).bold(),
|
||||
Paint::red(separator),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user