Skip to content

Commit 85499e5

Browse files
committed
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 <[email protected]>
1 parent 4c35b91 commit 85499e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ fn main() {
1616

1717
for command in COMMANDS {
1818
if let Err(err) = generate_man_page(&outdir, command) {
19-
panic!("failed to generate man page: {}", err);
19+
println!(
20+
"failed to generate man page: {} (is asciidoctor installed?)",
21+
err
22+
);
2023
}
2124
}
2225
}
2326

2427
fn generate_man_page<P: AsRef<Path>>(outdir: P, command: &str) -> io::Result<()> {
25-
// If asciidoctor isn't installed, fallback to asciidoc.
2628
if let Err(err) = process::Command::new("asciidoctor").output() {
2729
eprintln!("Error from running 'asciidoctor': {}", err);
2830
return Err(err);

0 commit comments

Comments
 (0)