shithub: hugo

Download patch

ref: 75acff5f20d0d41ffa1ae20402001c7a82f077cb
parent: 5c9d5413a4e2cc8d44a8b2d7dff04e6523ba2a29
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Jul 18 07:53:04 EDT 2018

hugolib: Avoid server panic on TOML mistake in i18n

Fixes #4942

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -735,7 +735,7 @@
 
 		// TOD(bep) globals clean
 		if err := first.Deps.LoadResources(); err != nil {
-			s.Log.ERROR.Println(err)
+			return whatChanged{}, err
 		}
 
 		s.TemplateHandler().PrintErrors()