commit fd59955: [Minor] Emit error to show message tag
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 19 21:42:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-19 21:35:34 +0000
URL: https://github.com/rspamd/rspamd/commit/fd599559283e6d6ed0e5ca7424c6ac557a72c096 (HEAD -> master)
[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 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);
}
More information about the Commits
mailing list