summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-26 12:59:00 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-26 12:59:00 +0100
commitc31f10000b01fd5987df78356c08619b860217bc (patch)
treed93a8d5d264747895aaa63782a1abc4ca1d5b569 /src/Daemon/CrashWatcher.cpp
parent877d35b4cd313cbcae8ed380e12e2d2aa1c91dd2 (diff)
parentea270854ebb60cdbf3ada8137e5b5653d2a4ad05 (diff)
downloadabrt-c31f10000b01fd5987df78356c08619b860217bc.tar.gz
abrt-c31f10000b01fd5987df78356c08619b860217bc.tar.xz
abrt-c31f10000b01fd5987df78356c08619b860217bc.zip
Merge branch 'master' of git://git.fedorahosted.org/crash-catcher
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r--src/Daemon/CrashWatcher.cpp22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 1e447b0..d524e99 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -141,11 +141,18 @@ dbus_map_report_info_t CCrashWatcher::CreateReport(const std::string &pUUID,cons
{
dbus_map_report_info_t retval;
unsigned long unix_uid = m_pConn->sender_unix_uid(pDBusSender.c_str());
- std::cerr << pUUID << ":" << unix_uid << std::endl;
+ //std::cerr << pUUID << ":" << unix_uid << std::endl;
crash_report_t crashReport;
std::cerr << "Creating report" << std::endl;
- m_pMW->CreateReport(pUUID,to_string(unix_uid), crashReport);
- retval = crashReport.GetMap();
+ try
+ {
+ m_pMW->CreateReport(pUUID,to_string(unix_uid), crashReport);
+ retval = crashReport.GetMap();
+ }
+ catch(std::string err)
+ {
+ std::cerr << err << std::endl;
+ }
return retval;
}
@@ -161,7 +168,14 @@ bool CCrashWatcher::Report(dbus_map_report_info_t pReport)
//}
crashReport.SetFromMap(pReport);
std::cerr << crashReport.m_sPackage << std::endl;
- m_pMW->Report(crashReport);
+ try
+ {
+ m_pMW->Report(crashReport);
+ }
+ catch(std::string err)
+ {
+ std::cerr << err << std::endl;
+ }
return true;
}