Add error if resource not found

master
Will Faught 5 months ago
parent a22e6b1fc9
commit 52a2e1f2e5

@ -33,4 +33,8 @@
{{ end }}
{{ end }}
{{ if not $result }}
{{ errorf "layouts/partials/paige/func-resource.html: cannot find resource %q" $url }}
{{ end }}
{{ return $result }}

Loading…
Cancel
Save