getError.lua 477 B

12345678910111213141516171819202122
  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. error = {
  9. type = 'string',
  10. description = 'The error message, or `nil` if no error has occurred on the Thread.'
  11. }
  12. },
  13. variants = {
  14. {
  15. arguments = {},
  16. returns = { 'error' }
  17. }
  18. },
  19. related = {
  20. 'lovr.threaderror'
  21. }
  22. }