summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-19 21:35:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-12-19 21:35:34 +0000
commitfd599559283e6d6ed0e5ca7424c6ac557a72c096 (patch)
tree662653ba84f25c0e3bd99c9ed147e233ef4877cf
parente4ff8091dc0019fcb2a93e0d0f5d019e61091e84 (diff)
downloadrspamd-fd599559283e6d6ed0e5ca7424c6ac557a72c096.tar.gz
rspamd-fd599559283e6d6ed0e5ca7424c6ac557a72c096.zip
[Minor] Emit error to show message tag
-rw-r--r--src/lua/lua_mimepart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_mimepart.c b/src/lua/lua_mimepart.c
index 29d3aac50..c221cbfa3 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);
}