when add_comment() fails it's always fail in xmlrpc. So we should use throw_xml_fault() instead of throw_if_xml_fault_occurred()
Signed-off-by: Nikola Pajkovsky npajkovs@redhat.com --- lib/plugins/Bugzilla.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/plugins/Bugzilla.cpp b/lib/plugins/Bugzilla.cpp index e494f08..55a957b 100644 --- a/lib/plugins/Bugzilla.cpp +++ b/lib/plugins/Bugzilla.cpp @@ -902,7 +902,7 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, { free(full_dsc); bug_info_destroy(&bz); - throw_if_xml_fault_occurred(&bz_server.env); + throw_xml_fault(&bz_server.env); } free(full_dsc); }