Logging: distinguish different failures in module instantiation.
This commit is contained in:
parent
9ad46eca55
commit
7195054bfd
@ -1,6 +1,7 @@
|
|||||||
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
/* === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
*
|
*
|
||||||
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
* Copyright 2014, Teo Mrnjavac <teo@kde.org>
|
||||||
|
* Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||||
*
|
*
|
||||||
* Calamares is free software: you can redistribute it and/or modify
|
* Calamares is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -51,14 +52,14 @@ ViewModule::loadSelf()
|
|||||||
PluginFactory* pf = qobject_cast< PluginFactory* >( m_loader->instance() );
|
PluginFactory* pf = qobject_cast< PluginFactory* >( m_loader->instance() );
|
||||||
if ( !pf )
|
if ( !pf )
|
||||||
{
|
{
|
||||||
cDebug() << Q_FUNC_INFO << m_loader->errorString();
|
cDebug() << Q_FUNC_INFO << "No factory:" << m_loader->errorString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_viewStep = pf->create< Calamares::ViewStep >();
|
m_viewStep = pf->create< Calamares::ViewStep >();
|
||||||
if ( !m_viewStep )
|
if ( !m_viewStep )
|
||||||
{
|
{
|
||||||
cDebug() << Q_FUNC_INFO << m_loader->errorString();
|
cDebug() << Q_FUNC_INFO << "create() failed" << m_loader->errorString();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// cDebug() << "ViewModule loading self for instance" << instanceKey()
|
// cDebug() << "ViewModule loading self for instance" << instanceKey()
|
||||||
|
Loading…
Reference in New Issue
Block a user