hugolib: Avoid server panic on TOML mistake in i18n

Fixes #4942
This commit is contained in:
Bjørn Erik Pedersen 2018-07-18 11:53:04 +02:00
parent 5c9d5413a4
commit 75acff5f20
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -735,7 +735,7 @@ func (s *Site) processPartial(events []fsnotify.Event) (whatChanged, error) {
// TOD(bep) globals clean
if err := first.Deps.LoadResources(); err != nil {
s.Log.ERROR.Println(err)
return whatChanged{}, err
}
s.TemplateHandler().PrintErrors()