From 51c73b5ace58811b68ad89855160415fa7dbc07b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 17 Jul 2023 21:05:33 +0100 Subject: [PATCH] [Minor] Remove assertion in lieu of a log message Issue: #4533 Closes: #4533 --- src/lua/lua_config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 680203c1e..e24fb3e7e 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1274,7 +1274,10 @@ lua_metric_symbol_callback (struct rspamd_task *task, res = FALSE; } else { - g_assert_not_reached (); + /* Something bogus has been returned, so we should log it */ + msg_err_task ("invalid return value for %s: %s", + cd->symbol, lua_typename (L, type)); + res = FALSE; } if (res) { -- 2.39.5