Log on error in translation file

Fixes #2562
This commit is contained in:
Bjørn Erik Pedersen
2016-10-12 16:54:29 +02:00
parent eb00c621e0
commit 998034faad
2 changed files with 6 additions and 2 deletions

View File

@@ -512,7 +512,9 @@ func (s *Site) reBuild(events []fsnotify.Event) (whatChanged, error) {
}
if len(i18nChanged) > 0 {
s.readI18nSources()
if err := s.readI18nSources(); err != nil {
jww.ERROR.Println(err)
}
}
// If a content file changes, we need to reload only it and re-render the entire site.