From e02993be2aba9168563e7a4b6c4aa66506e46323 Mon Sep 17 00:00:00 2001 From: networkException Date: Thu, 12 Sep 2024 02:02:43 +0200 Subject: [PATCH] Main: Improve error logging for writing to the output path --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d391c2d..edea77a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(()) }