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:
@@ -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
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user