From 1ffe47b9b9d1bdd204046adfcfb1496195ffa383 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Mon, 1 Oct 2018 11:09:34 +0200 Subject: Lua Util: add missing docstring to defineHowTo --- src/Text/Pandoc/Lua/Util.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Lua') 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 <> ": ") <>) -- cgit v1.2.3