1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-11-23 13:02:09 +01:00

Improve error message on frontmatter parse error

This commit is contained in:
adnano 2021-04-26 11:50:40 -04:00
parent 47e1c2c0f5
commit f4a603658e

@ -52,7 +52,7 @@ func NewPage(path string, content []byte) *Page {
frontmatter, content = extractFrontmatter(content)
if len(frontmatter) != 0 {
if err := yaml.Unmarshal(frontmatter, &page); err != nil {
log.Println(err)
log.Printf("failed to parse frontmatter for %q: %v", path, err)
}
}