Improve error message when layout file has an error.
This commit is contained in:
parent
005d5fdafd
commit
9b24f6ac08
|
@ -268,7 +268,7 @@ auto VPMainWindow::LoadFile(QString path) -> bool
|
||||||
if (fileReader.hasError())
|
if (fileReader.hasError())
|
||||||
{
|
{
|
||||||
qCCritical(pWindow, "%s\n\n%s", qUtf8Printable(tr("File error.")),
|
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();
|
lock.reset();
|
||||||
|
|
||||||
if (m_cmd->IsTestModeEnabled())
|
if (m_cmd->IsTestModeEnabled())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user