diff options
| author | Michal Toman <mtoman@redhat.com> | 2010-08-18 11:18:39 +0200 |
|---|---|---|
| committer | Michal Toman <mtoman@redhat.com> | 2010-08-18 11:18:39 +0200 |
| commit | 4ef4bc1ba11d9c185db584ed97ce520a6306b462 (patch) | |
| tree | 5b37f6ca52fd5911b7e65157b4246cc99d7f3fab /src/daemon/dumpsocket.cpp | |
| parent | e0b0da307a78b038045e2cb86934d60befd74339 (diff) | |
| download | abrt-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.cpp | 7 |
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); |
