Skip to content

Commit

Permalink
don't error on network failures
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-i-m committed Feb 13, 2020
1 parent d538b80 commit 23cb749
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/rustbook/src/main.rs
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 23cb749

Please sign in to comment.