From aa6da0069bac8497590403647b06ecec16ae34f7 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 8 Jan 2023 12:51:04 +0100 Subject: [PATCH] Include file name in frontmatter parsing error print. --- source/video/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/video/mod.rs b/source/video/mod.rs index a2bb33b..bb91a39 100644 --- a/source/video/mod.rs +++ b/source/video/mod.rs @@ -39,12 +39,12 @@ pub fn write_all(public_dir: &Path) -> Result<()> { continue; } - let file_contents = fs::read_to_string(file_path)?; + let file_contents = fs::read_to_string(&file_path)?; let (video_data, markdown) = match toml_frontmatter::parse::(&file_contents) { Ok(parsed) => parsed, Err(error) => { - println!("{error}"); + println!("{:?} {}", file_path.file_name().unwrap(), error); continue; } };