getError.lua 409 B

1234567891011121314151617
  1. return {
  2. summary = 'Get the Thread\'s error message.',
  3. description = [[
  4. Returns the message for the error that occurred on the Thread, or nil if no error has occurred.
  5. ]],
  6. arguments = {},
  7. returns = {
  8. {
  9. name = 'error',
  10. type = 'string',
  11. description = 'The error message, or `nil` if no error has occurred on the Thread.'
  12. }
  13. },
  14. related = {
  15. 'lovr.threaderror'
  16. }
  17. }