error: use error_payload in Lua
In Lua struct error used RTTI to return members of the error depending on its type. If a field was added to error's payload, it wasn't visible. The patch makes Lua use error_payload instead of RTTI. Now if the payload gets a new field, it becomes automatically visible in Lua without need to introduce a new method for it. Part of #5568 Part of #4610 Part of #4907
Showing
- extra/exports 1 addition, 2 deletionsextra/exports
- src/box/error.cc 3 additions, 21 deletionssrc/box/error.cc
- src/lib/core/diag.c 6 additions, 0 deletionssrc/lib/core/diag.c
- src/lib/core/diag.h 3 additions, 0 deletionssrc/lib/core/diag.h
- src/lib/core/exception.cc 1 addition, 7 deletionssrc/lib/core/exception.cc
- src/lua/error.lua 15 additions, 54 deletionssrc/lua/error.lua
- src/lua/init.lua 0 additions, 24 deletionssrc/lua/init.lua
Loading
Please register or sign in to comment