stop everything on template substitution errors

we're not a circus
This commit is contained in:
Mirek Kratochvil 2023-10-15 22:23:03 +02:00 committed by Mirek Kratochvil
parent 402107a237
commit 53aa481aac

View file

@ -192,7 +192,7 @@ checkedSubstitute :: Mu.Template -> MT.Value -> IO T.Text
checkedSubstitute t v = do
let (es, txt) = Mu.checkedSubstitute t v
traverse_ (putStrLn . ("Error: " ++) . show) es
--null es `unless` error "template substitution problems!"
null es `unless` error "template substitution problems!"
pure txt
-- | Add global information to page metadata for rendering (at this point just the url base)