clean up render error handling
This commit is contained in:
+2
-8
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user