diff options
| author | Karel Klic <kklic@redhat.com> | 2010-08-19 11:11:58 +0200 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2010-08-19 11:11:58 +0200 |
| commit | d6f6a7a98b83de0d0aa3792fb187b66d9d15953d (patch) | |
| tree | 3f88861519c32e3180d506507f1de3f8e34dfe45 /src/hooks/dumpoops.cpp | |
| parent | 8b22e91dc2ac3e73d628486c91f83da5a0e5ec44 (diff) | |
| parent | 96071530ea85635cf87a6bf650b7f5ddbd219f44 (diff) | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/hooks/dumpoops.cpp')
| -rw-r--r-- | src/hooks/dumpoops.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/hooks/dumpoops.cpp b/src/hooks/dumpoops.cpp index a2d2353a..a14fb65b 100644 --- a/src/hooks/dumpoops.cpp +++ b/src/hooks/dumpoops.cpp @@ -77,7 +77,7 @@ int main(int argc, char **argv) // const plugin_info_t *plugin_info; CPlugin* (*plugin_newf)(void); int (*scan_syslog_file)(vector_string_t& oopsList, const char *filename, time_t *last_changed_p); - void (*save_oops_to_debug_dump)(const vector_string_t& oopsList); + int (*save_oops_to_debug_dump)(const vector_string_t& oopsList); void *handle; errno = 0; @@ -110,11 +110,10 @@ int main(int argc, char **argv) } if (opt_d) { log("dumping oopses"); - try { - save_oops_to_debug_dump(oopsList); - } - catch (CABRTException& e) { - fprintf(stderr, "Error: %s\n", e.what()); + int errors = save_oops_to_debug_dump(oopsList); + if (errors > 0) + { + log("%d errors while dumping oopses", errors); return 1; } } |
