From: Vsevolod Stakhov Date: Thu, 3 May 2018 16:17:55 +0000 (+0100) Subject: [Minor] Improve usability of configwizard statconvert X-Git-Tag: 1.7.5~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1422733ad4e5e1bf9ca3559ab680daa8e6629a85;p=thirdparty%2Frspamd.git [Minor] Improve usability of configwizard statconvert --- diff --git a/lualib/rspamadm/configwizard.lua b/lualib/rspamadm/configwizard.lua index 95febf7193..84d7b2d641 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",