diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-12-22 15:05:35 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-12-22 15:09:57 -0800 |
commit | 348945321d751ff3fbd59e315f560e38df25f98b (patch) | |
tree | a8ed9207b456c2dac8f9d7511e924875d8e618ab /src/luasocket/inet.c | |
parent | e7a73626e826bad1a39dffdd8e8c47bd8b8d2d57 (diff) | |
download | teliva-348945321d751ff3fbd59e315f560e38df25f98b.tar.gz |
errors during tests are now handled
I should have documented that I'd never actually seen that code path trigger before. Here's a minimal test that did it just now: function test_foo() return a+1 end E2: [string "test_foo"]:2: attempt to perform arithmetic on global 'a' (a nil value) A simple missing variable doesn't do it since it just evaluates to nil. Without this commit, the above test was silently continuing to the main app after failing tests.
Diffstat (limited to 'src/luasocket/inet.c')
0 files changed, 0 insertions, 0 deletions