diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-05 17:03:32 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-05 17:03:32 +0100 |
commit | dbbc2df18f5441d7b298c5d32e4199aa56f08ce0 (patch) | |
tree | adf4bce0a6a02d29da010f91c8264c4dd38ca465 /lib/Plugins/Bugzilla.cpp | |
parent | 9e7602b032c2187887c8164fa23c37d6daf28ac0 (diff) | |
download | abrt-dbbc2df18f5441d7b298c5d32e4199aa56f08ce0.tar.gz abrt-dbbc2df18f5441d7b298c5d32e4199aa56f08ce0.tar.xz abrt-dbbc2df18f5441d7b298c5d32e4199aa56f08ce0.zip |
add ProcessUnpackaged option to abrt.conf
Based on patch by Pekka Pietikainen <pp@ee.oulu.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/Bugzilla.cpp')
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index 6ec1f426..b3066d7c 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -391,8 +391,8 @@ xmlrpc_int32 ctx::new_bug(const map_crash_data_t& pCrashData) if (env.fault_occurred) return -1; - log("New bug id: %i", bug_id); - update_client(_("New bug id: %i"), bug_id); + log("New bug id: %i", (int)bug_id); + update_client(_("New bug id: %i"), (int)bug_id); return bug_id; } @@ -585,6 +585,11 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, { update_client(_("Creating new bug...")); bug_id = bz_server.new_bug(pCrashData); + if (bug_id < 0) + { + throw_if_xml_fault_occurred(&bz_server.env); + throw CABRTException(EXCEP_PLUGIN, _("Bugzilla entry creation failed")); + } int ret = bz_server.add_attachments(to_string(bug_id).c_str(), pCrashData); if (ret == -1) { |