diff --git a/layouts/partials/paige/func-resource.html b/layouts/partials/paige/func-resource.html index 7dc7628f..a3888c9b 100644 --- a/layouts/partials/paige/func-resource.html +++ b/layouts/partials/paige/func-resource.html @@ -7,7 +7,11 @@ {{ if (urls.Parse $url).Scheme }} {{ with resources.GetRemote $url }} - {{ $result = . }} + {{ with .Err }} + {{ errorf "cannot get remote resource %q: %v" $url . }} + {{ else }} + {{ $result = . }} + {{ end }} {{ end }} {{ else }} {{ with $page.Resources.GetMatch $url }}