diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2016-02-21 11:59:44 +0100 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2016-02-21 11:59:44 +0100 |
commit | d075e7322f0ac1de505b025fd3004b8d4123cc56 (patch) | |
tree | affc3d07fad31a226c0b112f5f989c27ce962a9a /gem | |
parent | bf13ec7fd4fb05666964cf629e9b10591356ff67 (diff) | |
download | luasocket-d075e7322f0ac1de505b025fd3004b8d4123cc56.tar.gz luasocket-d075e7322f0ac1de505b025fd3004b8d4123cc56.tar.bz2 luasocket-d075e7322f0ac1de505b025fd3004b8d4123cc56.zip |
Support table errors.
LuaSocket wraps error messages raised by newtry() in a table and unpacks
them later so that (string) errors raised by 3rd-party code can be
passed through as-is. This obviously didn't work when the 3rd-party code
raised a table as an error message. This change sets a private metatable
on all wrapped LuaSocket exceptions to distinguish them from 3rd-party
table errors.
Diffstat (limited to 'gem')
0 files changed, 0 insertions, 0 deletions