Add error if resource not found

This commit is contained in:
Will Faught
2025-02-12 16:01:44 -08:00
parent a22e6b1fc9
commit 52a2e1f2e5

View File

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