aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-08 21:36:55 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-08 21:36:55 +0300
commit849a4e522197e7bbfcb0c29ca62026e10a2a6361 (patch)
tree60243dd90120d6a185f06f2a49bc9e19cc04d7d7 /src
parent7e1e71a5459a0729326f15ee30e28ccb17e597f9 (diff)
downloadrspamd-849a4e522197e7bbfcb0c29ca62026e10a2a6361.tar.gz
rspamd-849a4e522197e7bbfcb0c29ca62026e10a2a6361.zip
Handle params correctly.
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index bc3748f4c..961a31d76 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -363,7 +363,7 @@ lua_call_expression_func (const gchar *module, const gchar *function,
struct worker_task **ptask;
GList *cur;
struct expression_argument *arg;
- int nargs = 0;
+ int nargs = 1;
/* Call specified function and expect result of given expected_type */
/* First check function in config table */
@@ -416,7 +416,7 @@ lua_call_expression_func (const gchar *module, const gchar *function,
}
if (lua_pcall (L, nargs, 1, 0) != 0) {
- msg_info ("call to %s failed", function);
+ msg_info ("call to %s failed: %s", function, lua_tostring (L, -1));
return FALSE;
}