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:
Alexis Sellier
2023-05-24 11:33:55 +02:00
parent 5fa677c5fb
commit 366e61a053
+1 -1
View File
@@ -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),
);