stop everything on template substitution errors
we're not a circus
This commit is contained in:
parent
402107a237
commit
53aa481aac
|
@ -192,7 +192,7 @@ checkedSubstitute :: Mu.Template -> MT.Value -> IO T.Text
|
||||||
checkedSubstitute t v = do
|
checkedSubstitute t v = do
|
||||||
let (es, txt) = Mu.checkedSubstitute t v
|
let (es, txt) = Mu.checkedSubstitute t v
|
||||||
traverse_ (putStrLn . ("Error: " ++) . show) es
|
traverse_ (putStrLn . ("Error: " ++) . show) es
|
||||||
--null es `unless` error "template substitution problems!"
|
null es `unless` error "template substitution problems!"
|
||||||
pure txt
|
pure txt
|
||||||
|
|
||||||
-- | Add global information to page metadata for rendering (at this point just the url base)
|
-- | Add global information to page metadata for rendering (at this point just the url base)
|
||||||
|
|
Loading…
Reference in a new issue