about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-04-01 18:13:44 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-04-01 20:40:47 -0700
commitd0d39797cff0a558162b73da8550c3914f2d1a89 (patch)
tree0d09581303245e73d741f99b98ca519529af21c9 /app.lua
parentaf239935ce849f0a1f4a4708acd65faf6eb6d84b (diff)
downloadlines.love-d0d39797cff0a558162b73da8550c3914f2d1a89.tar.gz
show count of test failures
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.lua b/app.lua
index f5e114d..b6be1b2 100644
--- a/app.lua
+++ b/app.lua
@@ -137,7 +137,7 @@ function App.run_tests_and_initialize()
   Test_errors = {}
   App.run_tests()
   if #Test_errors > 0 then
-    error('There were test failures:\n\n'..table.concat(Test_errors))
+    error(('There were %d test failures:\n\n%s'):format(#Test_errors, table.concat(Test_errors)))
   end
   App.disable_tests()
   App.initialize_globals()