FS-3841 --resolve ok return the string "die" or "exit" from hanguphook to cause an error or call s:destroy("any err message"); either should now halt the script

This commit is contained in:
Anthony Minessale
2012-01-27 19:03:04 -06:00
parent 99b6479947
commit 09ad887948
6 changed files with 107 additions and 9 deletions
+3 -1
View File
@@ -101,7 +101,9 @@ int docall(lua_State * L, int narg, int clear, int perror)
if (!zstr(err)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", err);
}
lua_pop(L, 1); /* pop error message from the stack */
//lua_pop(L, 1); /* pop error message from the stack */
// pass error up to top
lua_error(L);
}
return status;