From 180b6c6b5885e6a6e62d39221d5bccc12daaf485 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 10 Apr 2024 23:42:47 -0500 Subject: Add -> functions to core --- util.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'util.lua') diff --git a/util.lua b/util.lua index 10460a2..a13912c 100644 --- a/util.lua +++ b/util.lua @@ -10,7 +10,11 @@ m.luaerror = error -- WHERE is where in the process; DESC is a description of the error; the rest -- are "irritants" function m.error (desc, ...) - m.luaerror(string.format("%s: %s", desc, table.concat({...}, " ") + local irritants = {} + for _, i in ipairs({...}) do + table.insert(irritants, tostring(i)) + end + m.luaerror(string.format("%s: %s", desc, table.concat(irritants, ", ") )) end -- cgit 1.4.1-21-gabe81