commit: | 10fc58766d1f23ca60cdaee0a428732bd031434f |
author: | Trevor Bentley |
committer: | Trevor Bentley |
date: | Mon Jan 13 23:54:41 2025 +0100 |
parents: | 3a658b8961a5d8ee608e1a7474fd3d18c837cff6 |
diff --git a/src/generate.rs b/src/generate.rs line changes: +2/-8 index b04d1de..d319423 --- a/src/generate.rs +++ b/src/generate.rs
@@ -343,14 +343,8 @@ impl GitsyGenerator { "ERROR: a summary output path is invalid: {}", out_path.display() )); - match tera.render(templ_path, &ctx) { - Ok(rendered) => { - global_bytes += self.write_rendered(&out_path, &rendered); - } - Err(x) => match x.kind { - _ => error!("ERROR: {:?}", x), - }, - } + let rendered = tera.render(templ_path, &ctx)?; + global_bytes += self.write_rendered(&out_path, &rendered); } Ok(global_bytes) }