Skip to content

Commit

Permalink
[Minor] Remove assertion in lieu of a log message
Browse files Browse the repository at this point in the history
Issue: #4533
Closes: #4533
  • Loading branch information
vstakhov committed Jul 17, 2023
1 parent 6e764e5 commit 51c73b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lua/lua_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 51c73b5

Please sign in to comment.