fix snipinfo missign ressources
@@ -86,7 +86,8 @@ impl Launcher {
let gitscript = self.data.sniprun_root_dir.clone() + "/ressources/gitscript.sh";
let mut get_version = Command::new(gitscript);
get_version.current_dir(self.data.sniprun_root_dir.clone());
- let res = get_version.output().expect("process failed to execute");
+ if let Ok(res) = get_version.output(){
+ info!("gitscript result: {:?}", res);
if res.status.success() {
let online_version = String::from_utf8(res.stdout).unwrap();
info!("online version available: {}", &online_version);
@@ -94,6 +95,9 @@ impl Launcher {
} else {
v.push(String::from("Could not determine up-to-date status\n"));
}
+ } else {
+ v.push(String::from("Could not determine up-to-date status\n"));
+ }
if let Some((name, level)) = self.select() {
v.push(format!(
@@ -101,7 +105,7 @@ impl Launcher {
name, level
));
} else {
- v.push("No interpreter selected".to_string());
+ v.push("No interpreter selected\n".to_string());
}
let separator = "|--------------------------|--------------|---------------|-------------|------------|--------------|------------|".to_string();
