Lua Util: add missing docstring to defineHowTo

This commit is contained in:
Albert Krewinkel 2018-10-01 11:09:34 +02:00
parent 36f1846cc3
commit 1ffe47b9b9
No known key found for this signature in database
GPG key ID: 388DC0B21F631124

View file

@ -134,6 +134,6 @@ throwTopMessageAsError' modifier = do
Lua.pop 2 -- remove error and error string pushed by tostring' Lua.pop 2 -- remove error and error string pushed by tostring'
Lua.throwException (modifier (UTF8.toString msg)) Lua.throwException (modifier (UTF8.toString msg))
-- | Mark the context of a Lua computation for better error reporting.
defineHowTo :: String -> Lua a -> Lua a defineHowTo :: String -> Lua a -> Lua a
defineHowTo ctx = Lua.withExceptionMessage (("Could not " <> ctx <> ": ") <>) defineHowTo ctx = Lua.withExceptionMessage (("Could not " <> ctx <> ": ") <>)