Skip to content

Commit 0deff3e

Browse files
author
Tom
authored
Better error message when missing template placeholders (#785)
cf #784 (comment)
1 parent 035e5d9 commit 0deff3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

layouts/shortcodes/docs_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
{{- define "link" -}}
3838
{{- $page := .context.Site.GetPage .page }}
39-
{{- if or (not $page) (not $page.RelPermalink) }}{{ errorf "Unknown page %q" .page }}{{ end }}
39+
{{- if or (not $page) (not $page.RelPermalink) }}{{ errorf "Missing page %q in lang %q" .page .context.Page.Lang }}{{ end }}
4040
{{- $tmp := newScratch }}
4141
{{- if .title }}
4242
{{- $tmp.Set "title" .title }}

0 commit comments

Comments
 (0)