summaryrefslogtreecommitdiffstats
path: root/hugolib/page_paths.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-25 20:31:43 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2017-03-27 15:43:56 +0200
commit0aaf3c56a511c6582db4dbfb28879e964e6f2d92 (patch)
treec85b6d7dc51dcbc7122efabb2a29d0a031752629 /hugolib/page_paths.go
parentee4a33b14ff2b0a2d9130415e16d1046f72573f7 (diff)
hugolib: Fix panic for Permalink in 404 etc. templates
Diffstat (limited to 'hugolib/page_paths.go')
-rw-r--r--hugolib/page_paths.go2
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