Fix bug in exception "Bad id".

Local variable hides class member.
(grafted from acb225f6c0ffc307f185f993feebfdaed79bd43b)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-07-26 11:56:16 +03:00
parent 457c27dbda
commit 4636215929

View File

@ -79,11 +79,11 @@ QString VExceptionBadId::ErrorMessage() const
QString error; QString error;
if (key.isEmpty()) if (key.isEmpty())
{ {
error = QString("ExceptionBadId: %1, id = %2").arg(error).arg(id); error = QString("ExceptionBadId: %1, id = %2").arg(this->error).arg(id);
} }
else else
{ {
error = QString("ExceptionBadId: %1, id = %2").arg(error).arg(key); error = QString("ExceptionBadId: %1, id = %2").arg(this->error).arg(key);
} }
return error; return error;
} }