Merge pull request #7 from quirinecker/feature/2-when-ascidoctor-reveal-js-is-missing-it-should-say-so-instead-of-saying-asciidoctor-itself-is-missing

When ascidoctor reveal js is missing it should say so instead of saying asciidoctor itself is missing

Closes #2
This commit is contained in:
2025-11-10 13:49:15 +01:00
committed by GitHub

View File

@@ -12,9 +12,13 @@ fn exec_command(command: &mut process::Command) -> Result<(), String> {
}
} else {
println!("{}", result.unwrap_err());
return Err(
"asciidoctor not installed. For more information run docki health!".to_string(),
);
let binary_name = command.get_program().to_str().unwrap_or("Something is");
return Err(format!(
"{} not installed. For more information run docki health!",
binary_name
));
}
}