Skip to content

Commit

Permalink
Rollup merge of rust-lang#69141 - mark-i-m:proper-linkcheck-2, r=Dyla…
Browse files Browse the repository at this point in the history
…n-DPC

Don't error on network failures

This should further reduce spurious failures.

r? @JohnTitor and/or @ehuss
  • Loading branch information
Dylan-DPC authored Feb 13, 2020
2 parents 0bdf568 + 23cb749 commit 7704e59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/rustbook/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ pub fn linkcheck(
eprintln!("Timeout for link `{}`", link.link.uri);
} else if err.is_server_error() {
eprintln!("Server error for link `{}`", link.link.uri);
} else if !err.is_http() {
eprintln!("Non-HTTP-related error for link: {} {}", link.link.uri, err);
} else {
is_real_error = true;
}
Expand Down

0 comments on commit 7704e59

Please sign in to comment.