diff options
Diffstat (limited to 'util.lua')
-rw-r--r-- | util.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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 | |||
10 | -- WHERE is where in the process; DESC is a description of the error; the rest | 10 | -- WHERE is where in the process; DESC is a description of the error; the rest |
11 | -- are "irritants" | 11 | -- are "irritants" |
12 | function m.error (desc, ...) | 12 | function m.error (desc, ...) |
13 | m.luaerror(string.format("%s: %s", desc, table.concat({...}, " ") | 13 | local irritants = {} |
14 | for _, i in ipairs({...}) do | ||
15 | table.insert(irritants, tostring(i)) | ||
16 | end | ||
17 | m.luaerror(string.format("%s: %s", desc, table.concat(irritants, ", ") | ||
14 | )) | 18 | )) |
15 | end | 19 | end |
16 | 20 | ||