From 058541f3be7b271456c25d270df7a76fafbc0410 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 18 Jun 2013 19:30:56 +0200 Subject: [PATCH] Lua script errors format more unified. lua_pcall error handler now formats errors in a way more similar to luaPushError() so that errors generated in different contexts look alike. --- src/scripting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting.c b/src/scripting.c index 06539a4cb..a707f1bac 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -631,7 +631,7 @@ void scriptingInit(void) { " i = debug.getinfo(3,'nSl')\n" " end\n" " if i then\n" - " return err ..': '.. i.source .. ': ' .. i.currentline\n" + " return i.source .. ':' .. i.currentline .. ': ' .. err\n" " else\n" " return err\n" " end\n"