summaryrefslogtreecommitdiffstats
path: root/src/daemon/dumpsocket.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 /src/daemon/dumpsocket.cpp
parente0b0da307a78b038045e2cb86934d60befd74339 (diff)
downloadabrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.gz
abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.tar.xz
abrt-4ef4bc1ba11d9c185db584ed97ce520a6306b462.zip
get rid of exceptions in CDebugDump class
Diffstat (limited to 'src/daemon/dumpsocket.cpp')
-rw-r--r--src/daemon/dumpsocket.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/daemon/dumpsocket.cpp b/src/daemon/dumpsocket.cpp
index 699a0609..21421b81 100644
--- a/src/daemon/dumpsocket.cpp
+++ b/src/daemon/dumpsocket.cpp
@@ -177,12 +177,11 @@ static void create_debug_dump(struct client *client)
fails if the path is too long. */
CDebugDump dd;
- try {
- dd.Create(path, client->uid);
- } catch (CABRTException &e) {
+ if (!dd.Create(path, client->uid))
+ {
dd.Delete();
dd.Close();
- error_msg_and_die("dumpsocket: Error while creating crash dump %s: %s", path, e.what());
+ error_msg_and_die("dumpsocket: Error while creating crash dump %s", path);
}
dd.SaveText(FILENAME_ANALYZER, client->analyzer);