Skip to content

Commit abd5cbd

Browse files
committed
When frontmatter parsing failed, show the error
1 parent 48c5c49 commit abd5cbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/com/potomushto/statik/processors/FrontmatterParser.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ internal object FrontmatterParser {
1919
if (yamlContent.isBlank()) return emptyMap()
2020
val loaded = try {
2121
yaml.load<Any?>(yamlContent)
22-
} catch (_: Exception) {
22+
} catch (e: Exception) {
23+
System.err.println("YAML parsing error: ${e.message}")
2324
return emptyMap()
2425
}
2526
val root = loaded as? Map<*, *> ?: return emptyMap()

0 commit comments

Comments
 (0)