mirror of
https://github.com/fluencelabs/redis
synced 2025-03-23 19:10:51 +00:00
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:
parent
51adc6e1bc
commit
9c2c878e45
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user