From 23cb749bbb5c57e85a89b72a76299df1aef464e7 Mon Sep 17 00:00:00 2001 From: Mark Mansi Date: Thu, 13 Feb 2020 11:53:07 -0600 Subject: [PATCH] don't error on network failures --- src/tools/rustbook/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/rustbook/src/main.rs b/src/tools/rustbook/src/main.rs index 023f5aa1e284b..226779ad0c0ce 100644 --- a/src/tools/rustbook/src/main.rs +++ b/src/tools/rustbook/src/main.rs @@ -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; }