Closed sosojustdo closed 8 years ago
lua-resty-template using, if you program have runtime exception I want try catch exception, how to do somthing? for instance catch exception redirect to error page。
Use Lua pcall or xpcall. I have been thinking about adding safe-mode with better error messages to template, but it needs some thinking still.
Thank you very much @bungle
lua-resty-template using, if you program have runtime exception I want try catch exception, how to do somthing? for instance catch exception redirect to error page。