git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8277 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-05-06 20:43:36 +00:00
parent 1454a52bf6
commit 9c8c1c2802

View File

@ -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 */
}
}