diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-07 11:25:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-07 11:25:52 +0100 |
commit | bbd88232db43d18f5e0de5a6502848d4074621c5 (patch) | |
tree | 32682e9f044704d0456575d6058735c60fa960ac /src/lua/lua_common.c | |
parent | ffbab4fbf218514845b8e5209aec044621b1f460 (diff) | |
download | rspamd-bbd88232db43d18f5e0de5a6502848d4074621c5.tar.gz rspamd-bbd88232db43d18f5e0de5a6502848d4074621c5.zip |
[Minor] Distinguish failures from unknown errors
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r-- | src/lua/lua_common.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c index b543ae5db..53473c9dc 100644 --- a/src/lua/lua_common.c +++ b/src/lua/lua_common.c @@ -1,11 +1,11 @@ -/*- - * Copyright 2016 Vsevolod Stakhov +/* + * Copyright 2023 Vsevolod Stakhov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, @@ -1008,6 +1008,7 @@ rspamd_lua_init(bool wipe_mem) * disabled_explicitly = {}, * disabled_failed = {}, * disabled_experimental = {}, + * disabled_unknown = {}, * } */ #define ADD_TABLE(name) \ @@ -1023,6 +1024,7 @@ rspamd_lua_init(bool wipe_mem) ADD_TABLE(disabled_explicitly); ADD_TABLE(disabled_failed); ADD_TABLE(disabled_experimental); + ADD_TABLE(disabled_unknown); #undef ADD_TABLE lua_setglobal(L, rspamd_modules_state_global); |