mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-10-30 09:23:09 +00:00
Improve error message on frontmatter parse error
This commit is contained in:
parent
1b7f5b4ab4
commit
f28ba9b9fd
2
page.go
2
page.go
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue