diff options
Diffstat (limited to 'tests/runner.lua')
| -rw-r--r-- | tests/runner.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/runner.lua b/tests/runner.lua index c99142170..b3d578a6f 100644 --- a/tests/runner.lua +++ b/tests/runner.lua @@ -50,11 +50,14 @@ function main(script) end, catch { - function (error) - if not error:find("aborting because of ") then - context:print_error(error, v, "unhandled error") + function (errors) + if errors then + errors = tostring(errors) + end + if errors and not errors:find("aborting because of ") then + context:print_error(errors, v, "unhandled error") else - raise(error) + raise(errors) end end } |
