aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Lua/Util.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2018-10-01 11:09:34 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2018-10-01 11:09:34 +0200
commit1ffe47b9b9d1bdd204046adfcfb1496195ffa383 (patch)
tree2a007e15ba454c53f16e7033cabe5523c4bea055 /src/Text/Pandoc/Lua/Util.hs
parent36f1846cc3130dbe4168789cc03f916ebf5828c8 (diff)
downloadpandoc-1ffe47b9b9d1bdd204046adfcfb1496195ffa383.tar.gz
Lua Util: add missing docstring to defineHowTo
Diffstat (limited to 'src/Text/Pandoc/Lua/Util.hs')
-rw-r--r--src/Text/Pandoc/Lua/Util.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Lua/Util.hs b/src/Text/Pandoc/Lua/Util.hs
index 46e11da24..89db9520d 100644
--- a/src/Text/Pandoc/Lua/Util.hs
+++ b/src/Text/Pandoc/Lua/Util.hs
@@ -134,6 +134,6 @@ throwTopMessageAsError' modifier = do
Lua.pop 2 -- remove error and error string pushed by tostring'
Lua.throwException (modifier (UTF8.toString msg))
-
+-- | Mark the context of a Lua computation for better error reporting.
defineHowTo :: String -> Lua a -> Lua a
defineHowTo ctx = Lua.withExceptionMessage (("Could not " <> ctx <> ": ") <>)