Commit bf8e078a authored by antirez's avatar antirez
Browse files

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.
parent b3fbc84c
......@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment