Skip to content

Commit 7704e59

Browse files
authored
Rollup merge of #69141 - mark-i-m:proper-linkcheck-2, r=Dylan-DPC
Don't error on network failures This should further reduce spurious failures. r? @JohnTitor and/or @ehuss
2 parents 0bdf568 + 23cb749 commit 7704e59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/rustbook/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ pub fn linkcheck(
115115
eprintln!("Timeout for link `{}`", link.link.uri);
116116
} else if err.is_server_error() {
117117
eprintln!("Server error for link `{}`", link.link.uri);
118+
} else if !err.is_http() {
119+
eprintln!("Non-HTTP-related error for link: {} {}", link.link.uri, err);
118120
} else {
119121
is_real_error = true;
120122
}

0 commit comments

Comments
 (0)