diff options
| author | Mirek Kratochvil <exa.exa@gmail.com> | 2023-10-15 22:23:03 +0200 |
|---|---|---|
| committer | Mirek Kratochvil <miroslav.kratochvil@uni.lu> | 2023-10-16 11:34:26 +0200 |
| commit | 53aa481aace0a59579846fddba8de41a465654ea (patch) | |
| tree | 81f1ee44339cbad50f549b7ed48995e0591e802e | |
| parent | 402107a237a7039b0aa2028f6c21939e53c98dc4 (diff) | |
| download | reploy-53aa481aace0a59579846fddba8de41a465654ea.tar.gz reploy-53aa481aace0a59579846fddba8de41a465654ea.tar.bz2 | |
stop everything on template substitution errors
we're not a circus
| -rw-r--r-- | reploy.hs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
