now displaying missing binary instead of allways asciidoctro. Tested

This commit is contained in:
2025-11-10 13:43:07 +01:00
parent 4777ba4b46
commit 261b2f76ca

View File

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