mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -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
|
||||
}
|
||||
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
|
||||
}
|
||||
site.Write()
|
||||
|
|
Loading…
Reference in a new issue