]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Emit error to show message tag
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Dec 2019 21:35:34 +0000 (21:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 19 Dec 2019 21:35:34 +0000 (21:35 +0000)
src/lua/lua_mimepart.c

index 29d3aac500486713cb4dbeff2936ea27268e40ac..c221cbfa3417c532b2100dc31d47d1b101559983 100644 (file)
@@ -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);
        }