From 85499e570f581a91def21ebcf5f34dfc9de15aa4 Mon Sep 17 00:00:00 2001 From: Tyler Fanelli Date: Mon, 10 Jul 2023 14:28:13 -0400 Subject: [PATCH] build: Don't fail on manpage build error Instead, just make note that the manpage was unable to be generated Signed-off-by: Tyler Fanelli --- build.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 3763f3b..b999c86 100644 --- a/build.rs +++ b/build.rs @@ -16,13 +16,15 @@ fn main() { for command in COMMANDS { if let Err(err) = generate_man_page(&outdir, command) { - panic!("failed to generate man page: {}", err); + println!( + "failed to generate man page: {} (is asciidoctor installed?)", + err + ); } } } fn generate_man_page>(outdir: P, command: &str) -> io::Result<()> { - // If asciidoctor isn't installed, fallback to asciidoc. if let Err(err) = process::Command::new("asciidoctor").output() { eprintln!("Error from running 'asciidoctor': {}", err); return Err(err);