Improve error message when layout file has an error.

This commit is contained in:
Roman Telezhynskyi 2021-09-04 16:00:33 +03:00
parent 005d5fdafd
commit 9b24f6ac08

View File

@ -268,7 +268,7 @@ auto VPMainWindow::LoadFile(QString path) -> bool
if (fileReader.hasError())
{
qCCritical(pWindow, "%s\n\n%s", qUtf8Printable(tr("File error.")),
qUtf8Printable(tr("Unable to read a layout file")));
qUtf8Printable(tr("Unable to read a layout file. %1").arg(fileReader.errorString())));
lock.reset();
if (m_cmd->IsTestModeEnabled())