distill-pattern-data errors out
Description of the problem
it seems like distill-pattern-data needs more guardrails to gracefully degrade
Steps to reproduce it
use policies list template for another list page...
- put stuff in place
mkdir layouts/month cp themes/wplshortcodes/layouts/policies/list.html layouts/month/list.html
- run hugo
_local/bin/wpl-serve-hugo _local/kieraLocal
- observe chaos ensue
Error: error building site: render: failed to render pages: render of "taxonomy" failed: execute of template failed: template: month/list.html:58:33: executing "main" at <partial "util/distill-pattern-data.html" (dict "context" ($listItch.Get "page") "scope" $patternDataDict)>: error calling partial: "themes/wplshortcodes/layouts/partials/util/distill-pattern-data.html:201:20": execute of template failed: template: partials/util/distill-pattern-data.html:201:20: executing "partials/util/distill-pattern-data.html" at <len $typeStyleColorMap>: error calling len: len of type bool
Expected behavior
I'd expect warning lights and klaxons when data isn't available, or properly structured.
Behavior detected
-
🤠 🐴 🎸 🎤 🎶 🔊 💩 Country music starts playing from every speaker in the house... -
🤨
🤔 ⁉ ️🗯 ️🧌 People start thinking the orange goblin makes sense.
Utter Chaos.
Screenshots
If relevant, copy and paste screenshots or photos of the problem here.
Edited by Wolf Noble