clean up render error handling

This commit is contained in:
Trevor Bentley
2025-01-13 23:54:41 +01:00
parent 3a658b8961
commit 10fc58766d
+2 -8
View File
@@ -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)
}