mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Added better error message for poorly formed frontmatters in archtypes
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user