From fd599559283e6d6ed0e5ca7424c6ac557a72c096 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 19 Dec 2019 21:35:34 +0000 Subject: [PATCH] [Minor] Emit error to show message tag --- src/lua/lua_mimepart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.47.3