mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-29 17:02:10 -05:00
Better reporting when the template is missing.
This commit is contained in:
parent
309db474c7
commit
2bbecc7bc8
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ func (site *Site) Build() (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if err = site.Render(); err != nil {
|
if err = site.Render(); err != nil {
|
||||||
|
fmt.Printf("Error rendering site: %s\n", err)
|
||||||
|
fmt.Printf("Available templates:")
|
||||||
|
for _, template := range site.Tmpl.Templates() {
|
||||||
|
fmt.Printf("\t%s\n", template.Name())
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
site.Write()
|
site.Write()
|
||||||
|
|
Loading…
Reference in a new issue