diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 14:44:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-11 14:44:19 +0100 |
commit | 90db3c3d5e0b7d4eaf2dd1da03d80ef5fa915cf3 (patch) | |
tree | b3217bc6f23fd2fdb052369a004cb6728df1afbb /src/lua | |
parent | 8623e8c2fe4123538ea8a1195e95804daeecdb5b (diff) | |
download | rspamd-90db3c3d5e0b7d4eaf2dd1da03d80ef5fa915cf3.tar.gz rspamd-90db3c3d5e0b7d4eaf2dd1da03d80ef5fa915cf3.zip |
[Minor] Fix error message
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/lua_logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c index 75c2984c6..8fbc0cc88 100644 --- a/src/lua/lua_logger.c +++ b/src/lua/lua_logger.c @@ -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, |