| Copyright | © 2017-2020 Albert Krewinkel |
|---|---|
| License | MIT |
| Maintainer | Albert Krewinkel <tarleb+hslua@zeitkraut.de> |
| Stability | beta |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Foreign.Lua.Raw.Error
Contents
Description
Lua exceptions and exception handling.
Synopsis
- errorMessage :: State -> IO ByteString
Passing Lua errors to Haskell
errorMessage :: State -> IO ByteString Source #
Retrieve and pop the top object as an error message. This is very similar to tostring', but ensures that we don't recurse if getting the message failed.