summaryrefslogtreecommitdiffstats
path: root/lib/plugins/Kerneloops.cpp
diff options
context:
space:
mode:
authorMichal Toman <mtoman@redhat.com>2010-08-18 11:18:39 +0200
committerMichal Toman <mtoman@redhat.com>2010-08-18 11:18:39 +0200
commit4ef4bc1ba11d9c185db584ed97ce520a6306b462 (patch)
tree5b37f6ca52fd5911b7e65157b4246cc99d7f3fab /lib/plugins/Kerneloops.cpp
parente0b0da307a78b038045e2cb86934d60befd74339 (diff)
downloadabrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.gz
abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.xz
abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.zip
get rid of exceptions in CDebugDump class
Diffstat (limited to 'lib/plugins/Kerneloops.cpp')
-rw-r--r--lib/plugins/Kerneloops.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/plugins/Kerneloops.cpp b/lib/plugins/Kerneloops.cpp
index 1a2532e8..379197b2 100644
--- a/lib/plugins/Kerneloops.cpp
+++ b/lib/plugins/Kerneloops.cpp
@@ -118,12 +118,15 @@ std::string CAnalyzerKerneloops::GetLocalUUID(const char *pDebugDumpDir)
VERB3 log("Getting local universal unique identification");
std::string oops;
+ CDebugDump dd;
+ if (!dd.Open(pDebugDumpDir))
{
- CDebugDump dd;
- dd.Open(pDebugDumpDir);
- dd.LoadText(FILENAME_BACKTRACE, oops);
+ VERB1 log(_("Unable to open debug dump '%s'"), pDebugDumpDir);
+ return std::string("");
}
+ dd.LoadText(FILENAME_BACKTRACE, oops);
+
unsigned hash = hash_oops_str(oops.c_str());
hash &= 0x7FFFFFFF;