🥅 Catch icon resource not found error

This commit is contained in:
James Panther
2022-01-12 14:25:25 +11:00
parent 3b5b93d965
commit a70353d5c0
7 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -4,5 +4,5 @@
{{ $icon.Content | safeHTML }}
</span>
{{ else }}
<em>{{ i18n "shortcode.icon_none" }}</em>
{{ errorf `[CONGO] Shortcode "icon" error in "%s": Resource "%s" not found. Check the path is correct or remove the shortcode.` .Page.Path (printf "icons/%s.svg" ($.Get 0)) }}
{{ end }}