now displaying missing binary instead of allways asciidoctro. Tested
This commit is contained in:
@@ -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
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user