mirror of
https://github.com/redis/redis.git
synced 2026-05-28 04:02:46 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue