Git commit 489e3d96b6294ea774aceecc66ed79f47835ffb8 by Artem Serebriyskiy. Committed on 26/06/2011 at 19:09. Pushed by artemserebriyskiy into branch 'master'. Now nepomukservicestub prints more informational errors When nepomukservicestub fails to create an instance of plugin, it outputs error message recived from KService M +3 -2 nepomuk/servicestub/servicecontrol.cpp http://commits.kde.org/kde-runtime/489e3d96b6294ea774aceecc66ed79f47835ffb8 diff --git a/nepomuk/servicestub/servicecontrol.cpp b/nepomuk/servicestub/servicecontrol.cpp index 1c27153..8a5130d 100644 --- a/nepomuk/servicestub/servicecontrol.cpp +++ b/nepomuk/servicestub/servicecontrol.cpp @@ -87,9 +87,10 @@ void Nepomuk::ServiceControl::start() // start the service // ==================================== - Nepomuk::Service* module = m_service->createInstance( this ); + QString startErrorDescription; + Nepomuk::Service* module = m_service->createInstance( this, QVariantList(), &startErrorDescription); if( !module ) { - s << "Failed to start service " << m_serviceName << "." << endl; + s << "Failed to start service " << m_serviceName << " ("<< startErrorDescription << ")." << endl; qApp->exit( ErrorFailedToStart ); return; }