mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Added better error message for poorly formed frontmatters in archtypes
This commit is contained in:
1 parent
3cec04e0d2
commit
e127a5cb7d
1 file changed
+1
@@ -57,6 +57,7 @@ func NewContent(kind, name string) (err error) {
|
|||||||
}
|
}
|
||||||
newmetadata, err := cast.ToStringMapE(metadata)
|
newmetadata, err := cast.ToStringMapE(metadata)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
jww.ERROR.Println("Error processing archetype file:", location)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user