Improve error message for incompatible format version.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-13 13:42:12 +02:00
parent 1e95ddcb19
commit 4e79aaa77f

View file

@ -243,13 +243,13 @@ Q_NORETURN void VAbstractConverter::InvalidVersion(int ver) const
{ {
if (ver < MinVer()) if (ver < MinVer())
{ {
const QString errorMsg(tr("Invalid version. Minimum supported version is %1").arg(MinVerStr())); const QString errorMsg(tr("Invalid version. Minimum supported format version is %1").arg(MinVerStr()));
throw VException(errorMsg); throw VException(errorMsg);
} }
if (ver > MaxVer()) if (ver > MaxVer())
{ {
const QString errorMsg(tr("Invalid version. Maximum supported version is %1").arg(MaxVerStr())); const QString errorMsg(tr("Invalid version. Maximum supported format version is %1").arg(MaxVerStr()));
throw VException(errorMsg); throw VException(errorMsg);
} }