[libcalamaresui] Use cError() for logging errors, not cLog()
This commit is contained in:
parent
e2b8fb0afe
commit
3e30bb682e
@ -72,8 +72,7 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
||||
if ( typeString.isEmpty() ||
|
||||
intfString.isEmpty() )
|
||||
{
|
||||
cLog() << Q_FUNC_INFO << "bad module descriptor format"
|
||||
<< instanceId;
|
||||
cError() << "Bad module descriptor format" << instanceId;
|
||||
return nullptr;
|
||||
}
|
||||
if ( ( typeString == "view" ) || ( typeString == "viewmodule" ) )
|
||||
@ -87,11 +86,11 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
||||
#ifdef WITH_PYTHONQT
|
||||
m = new PythonQtViewModule();
|
||||
#else
|
||||
cLog() << "PythonQt modules are not supported in this version of Calamares.";
|
||||
cError() << "PythonQt modules are not supported in this version of Calamares.";
|
||||
#endif
|
||||
}
|
||||
else
|
||||
cLog() << "Bad interface" << intfString << "for module type" << typeString;
|
||||
cError() << "Bad interface" << intfString << "for module type" << typeString;
|
||||
}
|
||||
else if ( typeString == "job" )
|
||||
{
|
||||
@ -108,18 +107,18 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
||||
#ifdef WITH_PYTHON
|
||||
m = new PythonJobModule();
|
||||
#else
|
||||
cLog() << "Python modules are not supported in this version of Calamares.";
|
||||
cError() << "Python modules are not supported in this version of Calamares.";
|
||||
#endif
|
||||
}
|
||||
else
|
||||
cLog() << "Bad interface" << intfString << "for module type" << typeString;
|
||||
cError() << "Bad interface" << intfString << "for module type" << typeString;
|
||||
}
|
||||
else
|
||||
cLog() << "Bad module type" << typeString;
|
||||
cError() << "Bad module type" << typeString;
|
||||
|
||||
if ( !m )
|
||||
{
|
||||
cLog() << "Bad module type (" << typeString
|
||||
cDebug() << "Bad module type (" << typeString
|
||||
<< ") or interface string (" << intfString
|
||||
<< ") for module " << instanceId;
|
||||
return nullptr;
|
||||
@ -130,8 +129,8 @@ Module::fromDescriptor( const QVariantMap& moduleDescriptor,
|
||||
m->m_directory = moduleDir.absolutePath();
|
||||
else
|
||||
{
|
||||
cLog() << Q_FUNC_INFO << "bad module directory"
|
||||
<< instanceId;
|
||||
cError() << "Bad module directory" << moduleDirectory
|
||||
<< "for" << instanceId;
|
||||
delete m;
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user