Include file name in frontmatter parsing error print.
This commit is contained in:
parent
4f206aa95e
commit
aa6da0069b
|
@ -39,12 +39,12 @@ pub fn write_all(public_dir: &Path) -> Result<()> {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let file_contents = fs::read_to_string(file_path)?;
|
let file_contents = fs::read_to_string(&file_path)?;
|
||||||
let (video_data, markdown) =
|
let (video_data, markdown) =
|
||||||
match toml_frontmatter::parse::<VideoData>(&file_contents) {
|
match toml_frontmatter::parse::<VideoData>(&file_contents) {
|
||||||
Ok(parsed) => parsed,
|
Ok(parsed) => parsed,
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
println!("{error}");
|
println!("{:?} {}", file_path.file_name().unwrap(), error);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue