aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/rspamadm
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-03 17:17:55 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-03 17:17:55 +0100
commit1422733ad4e5e1bf9ca3559ab680daa8e6629a85 (patch)
treecebc7dee8078b439130665c52c4286f8f5fe6816 /lualib/rspamadm
parente7153fc22cc0b98022a0d3c697f291674ed9dfd0 (diff)
downloadrspamd-1422733ad4e5e1bf9ca3559ab680daa8e6629a85.tar.gz
rspamd-1422733ad4e5e1bf9ca3559ab680daa8e6629a85.zip
[Minor] Improve usability of configwizard statconvert
Diffstat (limited to 'lualib/rspamadm')
-rw-r--r--lualib/rspamadm/configwizard.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/lualib/rspamadm/configwizard.lua b/lualib/rspamadm/configwizard.lua
index 95febf719..84d7b2d64 100644
--- a/lualib/rspamadm/configwizard.lua
+++ b/lualib/rspamadm/configwizard.lua
@@ -439,7 +439,13 @@ return ttl
local r,ver = get_version(conn)
if not r then return false end
if ver ~= 2 then
- printf("You are using an old schema for %s/%s", symbol_ham, symbol_spam)
+ if not ver then
+ printf('Key "%s_version" has not been found in Redis for %s/%s',
+ symbol_ham)
+ else
+ printf("You are using an old schema version: %s for %s/%s",
+ ver, symbol_ham, symbol_spam)
+ end
try_convert(true)
else
printf("You have configured an old schema for %s/%s but your data has new layout",