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:
parent
5fa677c5fb
commit
366e61a053
|
|
@ -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),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue