tpl/tplimpl: Fix context in shortcode error messages

Fixes #13279
This commit is contained in:
Joe Mooring
2025-01-19 07:00:49 -08:00
committed by Bjørn Erik Pedersen
parent 1f5a15aba0
commit 8de4ffb294
9 changed files with 347 additions and 243 deletions

View File

@@ -22,7 +22,7 @@
{{- end }}
{{- (. | transform.Unmarshal).html | safeHTML -}}
{{- else -}}
{{- warnidf "shortcode-x-simple-getremote" "The %q shortcode was unable to retrieve the remote data. See %s" .ctx.Name .ctx.Position -}}
{{- warnidf "shortcode-x-simple-getremote" "The %q shortcode was unable to retrieve the remote data. See %s" $.ctx.Name $.ctx.Position -}}
{{- end -}}
{{- end -}}
{{- end -}}