mpeterv
4adfd7a501
Support table errors in socket.newtry/protect
...
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.
2016-02-16 11:23:07 +03:00
..
2015-08-21 15:39:34 -03:00
2015-08-21 15:39:34 -03:00
2015-08-22 19:52:01 -03:00
2011-05-25 20:57:22 +00:00
2015-08-21 22:31:29 -03:00
2015-08-21 15:39:34 -03:00
2016-02-16 11:23:07 +03:00
2015-03-01 20:34:53 +01:00
2013-05-27 12:45:09 +04:00
2015-08-24 16:41:24 -03:00
2015-12-03 12:56:18 -02:00
2015-08-25 15:41:40 -03:00
2015-08-21 15:39:34 -03:00
2015-08-22 19:52:01 -03:00
2016-02-11 15:53:53 +03:00
2016-02-16 11:13:22 +03:00
2013-06-11 19:10:03 +08:00
2016-02-16 11:13:22 +03:00
2016-02-11 15:57:56 +03:00
2015-08-21 15:39:34 -03:00
2013-06-11 19:10:03 +08:00
2013-05-27 12:45:09 +04:00
2015-08-21 15:51:52 -03:00
2015-10-05 10:28:29 +08:00
2015-03-03 21:17:06 +01:00
2015-10-06 11:33:50 +08:00
2009-05-27 09:31:38 +00:00
2015-08-21 22:31:29 -03:00
2013-05-27 12:45:09 +04:00
2012-04-11 14:18:20 -07:00
2016-02-16 11:13:22 +03:00
2015-12-03 12:56:18 -02:00
2012-04-23 00:18:45 +08:00
2015-08-21 15:39:34 -03:00
2009-05-27 09:31:38 +00:00
2016-02-11 15:56:57 +03:00
2015-10-06 11:33:50 +08:00
2015-10-06 11:33:50 +08:00
2015-08-21 15:39:34 -03:00
2013-06-11 17:20:27 +08:00
2016-02-11 15:54:59 +03:00
2015-08-22 19:52:01 -03:00
2013-05-30 16:50:28 +08:00
2015-08-21 15:39:34 -03:00
2013-05-30 16:50:28 +08:00