diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-01 11:09:34 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-01 11:09:34 +0200 |
commit | 1ffe47b9b9d1bdd204046adfcfb1496195ffa383 (patch) | |
tree | 2a007e15ba454c53f16e7033cabe5523c4bea055 /src | |
parent | 36f1846cc3130dbe4168789cc03f916ebf5828c8 (diff) | |
download | pandoc-1ffe47b9b9d1bdd204046adfcfb1496195ffa383.tar.gz |
Lua Util: add missing docstring to defineHowTo
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Lua/Util.hs | 2 |
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 <> ": ") <>) |