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-23 14:21:27 +02:00
parent 5fa677c5fb
commit 366e61a053
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

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),
);