]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix error message
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Sep 2018 13:44:19 +0000 (14:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Sep 2018 13:44:19 +0000 (14:44 +0100)
src/lua/lua_logger.c

index 75c2984c61ba89c243bd20a540fff6d4861dce4b..8fbc0cc88f6fc8795eeb637ef6e890433e54a9fe 100644 (file)
@@ -737,8 +737,8 @@ lua_logger_do_log (lua_State *L,
        }
        else {
                /* Bad argument type */
-               msg_err ("bad format string type: %s", lua_typename (L, lua_type (L, 1)));
-               return lua_error (L);
+               return luaL_error (L, "bad format string type: %s",
+                               lua_typename (L, lua_type (L, start_pos)));
        }
 
        ret = lua_logger_log_format (L, fmt_pos, is_string,