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: {}", "ERROR: a summary output path is invalid: {}",
out_path.display() out_path.display()
)); ));
match tera.render(templ_path, &ctx) { let rendered = tera.render(templ_path, &ctx)?;
Ok(rendered) => { global_bytes += self.write_rendered(&out_path, &rendered);
global_bytes += self.write_rendered(&out_path, &rendered);
}
Err(x) => match x.kind {
_ => error!("ERROR: {:?}", x),
},
}
} }
Ok(global_bytes) Ok(global_bytes)
} }