mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Added better error message for poorly formed frontmatters in archtypes
This commit is contained in:
parent
3cec04e0d2
commit
e127a5cb7d
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ func NewContent(kind, name string) (err error) {
|
|||
}
|
||||
newmetadata, err := cast.ToStringMapE(metadata)
|
||||
if err != nil {
|
||||
jww.ERROR.Println("Error processing archetype file:", location)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue