Skip to content

Commit b5cd962

Browse files
committed
Don't return an error from linkcheck when it's not supported'
1 parent 43cb7d0 commit b5cd962

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/tools/rustbook/src/main.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ use mdbook::renderer::RenderContext;
2020
use mdbook_linkcheck::{self, errors::BrokenLinks};
2121
use failure::Error;
2222

23-
#[cfg(not(all(target_arch = "x86_64", target_os = "linux")))]
24-
use failure::bail;
25-
2623
fn main() {
2724
let d_message = "-d, --dest-dir=[dest-dir]
2825
'The output directory for your book{n}(Defaults to ./book when omitted)'";
@@ -109,7 +106,8 @@ pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> {
109106

110107
#[cfg(not(all(target_arch = "x86_64", target_os = "linux")))]
111108
pub fn linkcheck(_args: &ArgMatches<'_>) -> Result<(), Error> {
112-
bail!("mdbook-linkcheck only works on x86_64 linux targets.");
109+
println!("mdbook-linkcheck only works on x86_64 linux targets.");
110+
Ok(())
113111
}
114112

115113
// Build command implementation

0 commit comments

Comments
 (0)