mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8277 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1454a52bf6
commit
9c8c1c2802
@ -165,7 +165,9 @@ static void lua_parse_and_execute(lua_State *L, char *input_code)
|
||||
|
||||
if (error) {
|
||||
const char *err = lua_tostring(L, -1);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", switch_str_nil(err));
|
||||
if (!switch_strlen_zero(err)) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", err);
|
||||
}
|
||||
lua_pop(L, 1); /* pop error message from the stack */
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user