Main: Improve error logging for writing to the output path

This commit is contained in:
networkException 2024-09-12 02:02:43 +02:00
parent 368e478e59
commit e02993be2a
Signed by: networkException
GPG key ID: E3877443AE684391

View file

@ -73,7 +73,7 @@ fn main() -> Result<()> {
let output = handlebars.render_template(contents.as_str(), &Value::Object(data_map))?;
fs::write(output_path, output)?;
fs::write(output_path, output).expect("To be able to write to {output_path}");
Ok(())
}