Add error if resource not found
This commit is contained in:
@@ -33,4 +33,8 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not $result }}
|
||||
{{ errorf "layouts/partials/paige/func-resource.html: cannot find resource %q" $url }}
|
||||
{{ end }}
|
||||
|
||||
{{ return $result }}
|
||||
|
Reference in New Issue
Block a user