aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2016-02-21 11:59:44 +0100
committerPhilipp Janda <siffiejoe@gmx.net>2016-02-21 11:59:44 +0100
commitd075e7322f0ac1de505b025fd3004b8d4123cc56 (patch)
treeaffc3d07fad31a226c0b112f5f989c27ce962a9a /etc
parentbf13ec7fd4fb05666964cf629e9b10591356ff67 (diff)
downloadluasocket-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 'etc')
0 files changed, 0 insertions, 0 deletions