From: Bjørn Erik Pedersen Date: Mon, 26 Dec 2016 13:52:31 +0000 (+0100) Subject: hugolib: Make template error messages more verbose X-Git-Tag: v0.19~175 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7d991ed8;p=brevno-suite%2Fhugo hugolib: Make template error messages more verbose Fixes #2820 --- diff --git a/hugolib/site.go b/hugolib/site.go index a2f0c3f5..6205ea04 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1808,7 +1808,7 @@ func (s *Site) renderForLayouts(name string, d interface{}, w io.Writer, layouts if err := s.renderThing(d, layout, w); err != nil { // Behavior here should be dependent on if running in server or watch mode. - distinctErrorLogger.Printf("Error while rendering %s: %.60s…", name, err) + distinctErrorLogger.Printf("Error while rendering %q: %s", name, err) if !s.running() && !testMode { // TODO(bep) check if this can be propagated os.Exit(-1) diff --git a/hugolib/site_render.go b/hugolib/site_render.go index b086cf8e..24536950 100644 --- a/hugolib/site_render.go +++ b/hugolib/site_render.go @@ -58,7 +58,7 @@ func (s *Site) renderPages() error { err := <-errs if err != nil { - return fmt.Errorf("Error(s) rendering pages: %.60s…", err) + return fmt.Errorf("Error(s) rendering pages: %s", err) } return nil }