From 5001dafa018b165222b07e9348c8a46a4d4a2874 Mon Sep 17 00:00:00 2001 From: David Gumberg Date: Thu, 23 May 2024 14:37:31 -0400 Subject: [PATCH] Move error summary output to stdout 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.) --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 79fb24b..2353d3b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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] {