mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-07 09:04:05 +00:00
rename traceback function
This commit is contained in:
parent
fb86124f30
commit
2b9de7d4c3
4
lsyncd.c
4
lsyncd.c
@ -448,7 +448,7 @@ printlogf0(lua_State *L,
|
|||||||
/*
|
/*
|
||||||
| Print a traceback of the error
|
| Print a traceback of the error
|
||||||
*/
|
*/
|
||||||
static int traceback (lua_State *L) {
|
static int l_traceback (lua_State *L) {
|
||||||
lua_getglobal(L, "debug");
|
lua_getglobal(L, "debug");
|
||||||
lua_getfield(L, -1, "traceback");
|
lua_getfield(L, -1, "traceback");
|
||||||
lua_pushvalue(L, 1);
|
lua_pushvalue(L, 1);
|
||||||
@ -2920,7 +2920,7 @@ main1( int argc, char *argv[] )
|
|||||||
lsyncd_config_file,
|
lsyncd_config_file,
|
||||||
lua_tostring( L, -1 )
|
lua_tostring( L, -1 )
|
||||||
);
|
);
|
||||||
traceback(L);
|
l_traceback(L);
|
||||||
|
|
||||||
exit( -1 );
|
exit( -1 );
|
||||||
}
|
}
|
||||||
|
@ -4020,7 +4020,6 @@ end
|
|||||||
function replaceCommand(cmd, data)
|
function replaceCommand(cmd, data)
|
||||||
assert(type(data) == "table")
|
assert(type(data) == "table")
|
||||||
local getData = function(arg)
|
local getData = function(arg)
|
||||||
print(arg, data)
|
|
||||||
local rv = data[arg]
|
local rv = data[arg]
|
||||||
if rv ~= nil then
|
if rv ~= nil then
|
||||||
return rv
|
return rv
|
||||||
|
Loading…
Reference in New Issue
Block a user