From 1422733ad4e5e1bf9ca3559ab680daa8e6629a85 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 May 2018 17:17:55 +0100 Subject: [PATCH] [Minor] Improve usability of configwizard statconvert --- lualib/rspamadm/configwizard.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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", -- 2.39.5