diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-25 20:31:43 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-03-27 15:43:56 +0200 |
commit | 0aaf3c56a511c6582db4dbfb28879e964e6f2d92 (patch) | |
tree | c85b6d7dc51dcbc7122efabb2a29d0a031752629 /hugolib/page_paths.go | |
parent | ee4a33b14ff2b0a2d9130415e16d1046f72573f7 (diff) |
hugolib: Fix panic for Permalink in 404 etc. templates
Diffstat (limited to 'hugolib/page_paths.go')
-rw-r--r-- | hugolib/page_paths.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/page_paths.go b/hugolib/page_paths.go index 00d96c05c..0d1b1c363 100644 --- a/hugolib/page_paths.go +++ b/hugolib/page_paths.go @@ -71,7 +71,7 @@ type targetPathDescriptor struct { // and URLs for this Page. func (p *Page) createTargetPathDescriptor(t output.Format) (targetPathDescriptor, error) { if p.targetPathDescriptorPrototype == nil { - panic("Must run initTargetPathDescriptor()") + panic(fmt.Sprintf("Must run initTargetPathDescriptor() for page %q, kind %q", p.Title, p.Kind)) } d := *p.targetPathDescriptorPrototype d.Type = t |