diff options
-rw-r--r-- | src/rspamadm/lua_repl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c index ce764c7f8..024561733 100644 --- a/src/rspamadm/lua_repl.c +++ b/src/rspamadm/lua_repl.c @@ -170,7 +170,7 @@ rspamadm_lua_load_script (lua_State *L, const gchar *path) if (luaL_loadfile (L, path) != 0) { rspamd_fprintf (stderr, "cannot load script %s: %s\n", - path, strerror (errno)); + path, lua_tostring (L, -1)); lua_settop (L, 0); return FALSE; @@ -299,7 +299,7 @@ rspamadm_lua_exec_handler (lua_State *L, gint argc, gchar **argv) if (luaL_loadfile (L, argv[i]) != 0) { rspamd_fprintf (stderr, "cannot load script %s: %s\n", - argv[i], strerror (errno)); + argv[i], lua_tostring (L, -1)); lua_settop (L, 0); return; |