[libcalamaresui] Log QML error message

- When loading fails, log a useful error message from the QML
   engine (to help debug the QML)
This commit is contained in:
Adriaan de Groot 2020-02-12 17:58:21 +01:00
parent 49ed97cb77
commit 85b873a1a2

View file

@ -339,6 +339,10 @@ void
QmlViewStep::showFailedQml()
{
cWarning() << "QmlViewStep" << moduleInstanceKey() << "loading failed.";
if ( m_qmlComponent )
{
cDebug() << Logger::SubEntry << "QML error:" << m_qmlComponent->errorString();
}
m_spinner->setText( prettyName() + ' ' + tr( "Loading failed." ) );
}