Omit newlines between errors

This commit is contained in:
Joscha 2022-11-05 12:12:16 +01:00
parent ffcae898f3
commit d437341dab
2 changed files with 6 additions and 2 deletions

View file

@ -14,6 +14,9 @@ Procedure when bumping the version number:
## Unreleased ## Unreleased
### Changed
- Print errors that occurred while cove was running more compactly
## v0.5.0 - 2022-09-26 ## v0.5.0 - 2022-09-26
### Added ### Added

View file

@ -81,13 +81,14 @@ impl Drop for LoggerGuard {
if !error_encountered { if !error_encountered {
eprintln!(); eprintln!();
eprintln!("The following errors occurred while cove was running:"); eprintln!("The following errors occurred while cove was running:");
eprintln!();
} }
error_encountered = true; error_encountered = true;
eprintln!("{}", msg.content); eprintln!("{}", msg.content);
eprintln!();
} }
} }
if error_encountered {
eprintln!();
}
} }
} }