From 52a2e1f2e5f814a1cd605e8724ffa7c3491b89aa Mon Sep 17 00:00:00 2001 From: Will Faught Date: Wed, 12 Feb 2025 16:01:44 -0800 Subject: [PATCH] Add error if resource not found --- layouts/partials/paige/func-resource.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/paige/func-resource.html b/layouts/partials/paige/func-resource.html index 64948027..47263bd5 100644 --- a/layouts/partials/paige/func-resource.html +++ b/layouts/partials/paige/func-resource.html @@ -33,4 +33,8 @@ {{ end }} {{ end }} +{{ if not $result }} + {{ errorf "layouts/partials/paige/func-resource.html: cannot find resource %q" $url }} +{{ end }} + {{ return $result }}