Skip to content

Commit

Permalink
Move error summary output to stdout (#87)
Browse files Browse the repository at this point in the history
Modifies the summary printed at the end to be entirely in stdout
instead of mixed between stderr and stdout. Without this commit,
suppressing stdout output or capturing stderr output for logs would
result in "The following links could not be resolved:" being printed
without the list of broken links (which should be the same as the stderr
output.)
  • Loading branch information
davidgumberg authored May 29, 2024
1 parent bc81bbe commit a6a9d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ pub async fn run(config: &Config) -> Result<(), ()> {
if errors.is_empty() {
Ok(())
} else {
eprintln!();
eprintln!("The following links could not be resolved:");
println!();
println!("The following links could not be resolved:");
println!();
for res in errors {
for link in &link_target_groups[&res.target] {
Expand Down

0 comments on commit a6a9d30

Please sign in to comment.