diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-06 15:49:21 +0200 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-06 15:49:21 +0200 |
commit | 9a3268d970142f0dfb4e3e77c66c9637bf87fbda (patch) | |
tree | e5626fd3a9fd086abf3a1790a67bc708b8de94b8 /lib/CommLayer/CommLayerServerDBus.cpp | |
parent | 53cec748dd575298de6cf3e47afe5736c61bfe21 (diff) | |
download | abrt-9a3268d970142f0dfb4e3e77c66c9637bf87fbda.tar.gz abrt-9a3268d970142f0dfb4e3e77c66c9637bf87fbda.tar.xz abrt-9a3268d970142f0dfb4e3e77c66c9637bf87fbda.zip |
DBUS: added method GetPluginsInfo()
Diffstat (limited to 'lib/CommLayer/CommLayerServerDBus.cpp')
-rw-r--r-- | lib/CommLayer/CommLayerServerDBus.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/CommLayer/CommLayerServerDBus.cpp b/lib/CommLayer/CommLayerServerDBus.cpp index ad3c2db..029cc91 100644 --- a/lib/CommLayer/CommLayerServerDBus.cpp +++ b/lib/CommLayer/CommLayerServerDBus.cpp @@ -22,7 +22,11 @@ CCommLayerServerDBus::CCommLayerServerDBus() } catch(DBus::Error err) { - throw CABRTException(EXCEP_FATAL, "CCommLayerServerDBus::CCommLayerServerDBus(): Error while requesting dbus name - have you reloaded the dbus settings?"); + throw CABRTException(EXCEP_FATAL, std::string(__func__) + + "\nPlease check if:\n" + + " * abrt is being run with root permissions\n" + + " * you have reloaded the dbus\n"+ + + "Original exception was:\n " + err.what()); } } @@ -103,3 +107,11 @@ void CCommLayerServerDBus::JobDone(const std::string &pDest, uint64_t pJobID) { CDBusServer_adaptor::JobDone(pDest, pJobID); } + +vector_map_string_string_t CCommLayerServerDBus::GetPluginsInfo() +{ + //FIXME: simplify? + vector_map_string_string_t plugins_info; + plugins_info = m_pObserver->GetPluginsInfo(); + return plugins_info; +} |