We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 009d4c7 commit 4bc95a0Copy full SHA for 4bc95a0
front_matter/src/lib.rs
@@ -63,7 +63,9 @@ mod tests {
63
64
for post in posts {
65
let content = fs::read_to_string(&post).unwrap();
66
- let normalized = normalize(&content).unwrap();
+ let normalized = normalize(&content).unwrap_or_else(|err| {
67
+ panic!("failed to normalize {:?}: {err}", post.file_name().unwrap());
68
+ });
69
70
if content != normalized {
71
if env::var("FIX_FRONT_MATTER").is_ok() {
0 commit comments