aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-12-26 14:52:31 +0100
committerBjørn Erik Pedersen <[email protected]>2016-12-29 18:08:04 +0100
commita6632c4f350ee78e22d05e16b6d90ce1416d1aa0 (patch)
treebdff5ba01751c7936631201c3fe0df5281ad4615
parentf6d8ffd3e554cba35bfeeea30f23ec0179bb6829 (diff)
downloadhugo-a6632c4f350ee78e22d05e16b6d90ce1416d1aa0.tar.gz
hugo-a6632c4f350ee78e22d05e16b6d90ce1416d1aa0.zip
hugolib: Make template error messages more verbose
Fixes #2820
-rw-r--r--hugolib/site.go2
-rw-r--r--hugolib/site_render.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index a2f0c3f51..6205ea040 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 b086cf8e1..24536950a 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
}