/* Get additional options */
if (s) {
+ if (s->sym == NULL) {
+ /* Unknown symbol, print traceback */
+ lua_pushfstring (L, "unknown symbol %s", symbol_name);
+ rspamd_lua_traceback (L);
+
+ msg_info_task ("symbol insertion issue: %s", lua_tostring (L, -1));
+
+ lua_pop (L, 1); /* Traceback string */
+ }
for (i = args_start + 2; i <= top; i++) {
gint ltype = lua_type (L, i);
}
}
}
+ else {
+ lua_pushfstring (L, "insertion failed for %s", symbol_name);
+ rspamd_lua_traceback (L);
+
+ msg_info_task ("symbol insertion issue: %s", lua_tostring (L, -1));
+
+ lua_pop (L, 2); /* Traceback string + error string */
+ }
}
else {