From kde-commits Thu Jun 30 21:52:56 2011 From: Artem Serebriyskiy Date: Thu, 30 Jun 2011 21:52:56 +0000 To: kde-commits Subject: =?utf-8?q?=5Bkde-runtime=5D_nepomuk/servicestub=3A_Now_nepomukse?= Message-Id: <20110630215256.D9D4CA60A6 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=130947082503241 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; }