From: Vsevolod Stakhov Date: Thu, 19 Dec 2019 21:35:34 +0000 (+0000) Subject: [Minor] Emit error to show message tag X-Git-Tag: 2.3~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd599559283e6d6ed0e5ca7424c6ac557a72c096;p=thirdparty%2Frspamd.git [Minor] Emit error to show message tag --- diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c index 29d3aac500..c221cbfa34 100644 --- a/src/lua/lua_mimepart.c +++ b/src/lua/lua_mimepart.c @@ -2096,7 +2096,8 @@ lua_mimepart_set_specific (lua_State * L) if (part->part_type != RSPAMD_MIME_PART_UNDEFINED && part->part_type != RSPAMD_MIME_PART_CUSTOM_LUA) { - msg_warn ("internal error: trying to set specific lua content on part of type %d", + return luaL_error (L, + "internal error: trying to set specific lua content on part of type %d", part->part_type); }