git.iko.soy/typeable/pandoc
on master help sign in
Lua Util: add missing docstring to defineHowTo
commit1ffe47b9b9d1bdd204046adfcfb1496195ffa383 authorAlbert Krewinkel <albert@zeitkraut.de> dateMon 1 Oct 2018, 11:09 (8 years ago) parent36f1846
1 file changed+1−1
src/Text/Pandoc/Lua/Util.hs+1−1
src/Text/Pandoc/Lua/Util.hs+1−1
@@ -134,6 +134,6 @@ throwTopMessageAsError' modifier = do
134134 Lua.pop 2 -- remove error and error string pushed by tostring'
135135 Lua.throwException (modifier (UTF8.toString msg))
136136
137−
137+-- | Mark the context of a Lua computation for better error reporting.
138138defineHowTo :: String -> Lua a -> Lua a
139139defineHowTo ctx = Lua.withExceptionMessage (("Could not " <> ctx <> ": ") <>)