diff --git a/layouts/shortcodes/table.html b/layouts/shortcodes/table.html index bb8cfaf..efef8ab 100644 --- a/layouts/shortcodes/table.html +++ b/layouts/shortcodes/table.html @@ -10,12 +10,14 @@ {{ $csv := "" }} {{ if $is_remote }} - {{ with try (resources.GetRemote $src) }} + {{ with resources.GetRemote $src }} {{ with .Err }} {{ errorf "Unable to retrieve CSV file %q: %s" $src . }} - {{ else with .Value }} + {{ else }} {{ $csv = .Content }} {{ end }} + {{ else }} + {{ errorf "Unable to retrieve CSV file %q" $src }} {{ end }} {{ else }} {{ $csv = readFile $src }}