mirror of
https://github.com/lunarmodules/luasocket.git
synced 2025-07-03 17:44:29 +02:00
Instead of simply wrapping errors in a table in newtry and considering all tables exceptions in protect, add a metatable to exception wrapper and check that. This allows using protect with functions that may throw error objects. Additionally, assign __tostring metamethod to the exception metatable so that unhandled exceptions can be viewed normally.
This is the LuaSocket 3.0-rc1. It has been tested on Windows 7, Mac OS X, and Linux. Please use the project page at GitHub https://github.com/diegonehab/luasocket to file bug reports or propose changes. Have fun, Diego Nehab.
Languages
HTML
48.5%
C
27.1%
Lua
22.7%
Makefile
1.5%