summaryrefslogtreecommitdiff
path: root/tests/runner.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-04-09 00:43:25 +0800
committerruki <[email protected]>2024-04-09 00:43:25 +0800
commit73abaaf1db8d884ccc1eccff2cef4f17a38fcf72 (patch)
treea3aa98fb0bfaf3634a4be1661faafc65630e0834 /tests/runner.lua
parentaca3ead5d138db01a4286b410e18f3d85effffe8 (diff)
fix errors
Diffstat (limited to 'tests/runner.lua')
-rw-r--r--tests/runner.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.lua b/tests/runner.lua
index 17783f9e4..b3d578a6f 100644
--- a/tests/runner.lua
+++ b/tests/runner.lua
@@ -54,7 +54,7 @@ function main(script)
if errors then
errors = tostring(errors)
end
- if not errors:find("aborting because of ") then
+ if errors and not errors:find("aborting because of ") then
context:print_error(errors, v, "unhandled error")
else
raise(errors)