Skip to content

Commit

Permalink
Don't return an error from linkcheck when it's not supported'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehjr committed Jul 6, 2019
1 parent 43cb7d0 commit b5cd962
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/tools/rustbook/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ use mdbook::renderer::RenderContext;
use mdbook_linkcheck::{self, errors::BrokenLinks};
use failure::Error;

#[cfg(not(all(target_arch = "x86_64", target_os = "linux")))]
use failure::bail;

fn main() {
let d_message = "-d, --dest-dir=[dest-dir]
'The output directory for your book{n}(Defaults to ./book when omitted)'";
Expand Down Expand Up @@ -109,7 +106,8 @@ pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> {

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

// Build command implementation
Expand Down

0 comments on commit b5cd962

Please sign in to comment.