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.
This commit is contained in:
antirez 2013-06-18 19:30:56 +02:00
parent 51adc6e1bc
commit 9c2c878e45

View File

@ -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"