summary history branches tags files
commit:fc99b9180d1280b139fa936da9d3c1d2fc4ab47c
author:Trevor Bentley
committer:Trevor Bentley
date:Mon Jan 13 23:55:24 2025 +0100
parents:10fc58766d1f23ca60cdaee0a428732bd031434f
output error when generation fails
diff --git a/src/main.rs b/src/main.rs
line changes: +7/-1
index 0120a64..eecf090
--- a/src/main.rs
+++ b/src/main.rs
@@ -33,5 +33,11 @@ fn main() {
     let cli = GitsyCli::new();
     let (settings, repo_descriptions) = GitsySettings::new(&cli);
     let mut generator = GitsyGenerator::new(cli, settings, repo_descriptions);
-    generator.generate().expect("Itsy-Gitsy generation failed!");
+    match generator.generate() {
+        Err(e) => {
+            error!("ERROR: {:?}", e);
+            panic!("Itsy-Gitsy generation failed!");
+        },
+        _ => {},
+    }
 }