diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-18 11:53:04 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-07-18 11:53:04 +0200 |
commit | 75acff5f20d0d41ffa1ae20402001c7a82f077cb (patch) | |
tree | 3debfd87ff182214c09253042f7c5b19934cbfab /hugolib | |
parent | 5c9d5413a4e2cc8d44a8b2d7dff04e6523ba2a29 (diff) |
hugolib: Avoid server panic on TOML mistake in i18n
Fixes #4942
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/site.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index 865217176..42e429e67 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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() |