summaryrefslogtreecommitdiffstats
path: root/src/Daemon/PluginManager.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-06 17:50:26 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-11-06 17:50:26 +0100
commitb1336faa48bee2cdb7ef0486a5a4faa5c74f4fa7 (patch)
treea86ee9bbd505b68d57a189418df152d48a1e852d /src/Daemon/PluginManager.cpp
parent3a62ede25114452938acb8e1a67006633b139efc (diff)
downloadabrt-b1336faa48bee2cdb7ef0486a5a4faa5c74f4fa7.tar.gz
abrt-b1336faa48bee2cdb7ef0486a5a4faa5c74f4fa7.tar.xz
abrt-b1336faa48bee2cdb7ef0486a5a4faa5c74f4fa7.zip
make exception handling lighter
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Daemon/PluginManager.cpp')
-rw-r--r--src/Daemon/PluginManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Daemon/PluginManager.cpp b/src/Daemon/PluginManager.cpp
index 2363308a..aa0b5315 100644
--- a/src/Daemon/PluginManager.cpp
+++ b/src/Daemon/PluginManager.cpp
@@ -179,8 +179,7 @@ void CPluginManager::LoadPlugin(const std::string& pName)
catch (CABRTException& e)
{
delete abrtPlugin;
- warn_client("CPluginManager::LoadPlugin(): " + e.what());
- warn_client("Failed to load plugin " + pName);
+ warn_client(ssprintf("Failed to load plugin %s: %s", pName.c_str(), e.what()));
}
}
}
@@ -218,7 +217,7 @@ void CPluginManager::RegisterPlugin(const std::string& pName)
log("Can't initialize plugin %s(%s): %s",
pName.c_str(),
plugin_type_str[abrt_plugin->second->GetType()],
- e.what().c_str()
+ e.what()
);
UnLoadPlugin(pName);
return;