summaryrefslogtreecommitdiffstats
path: root/lib/plugins/KerneloopsReporter.cpp
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-08-31 17:31:17 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2010-08-31 17:31:17 +0200
commitd477bca57905b8118b85a5b7b70f30a533c34f85 (patch)
treef941e35fb8bf4a63782b126cb8261d623b47d828 /lib/plugins/KerneloopsReporter.cpp
parentfa6ff933a999ecad0394a2a9e96a90cafbd04908 (diff)
parentc8a8387090bed21550ab7e1ef38d307713b6d9a3 (diff)
downloadabrt-d477bca57905b8118b85a5b7b70f30a533c34f85.tar.gz
abrt-d477bca57905b8118b85a5b7b70f30a533c34f85.tar.xz
abrt-d477bca57905b8118b85a5b7b70f30a533c34f85.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/plugins/KerneloopsReporter.cpp')
-rw-r--r--lib/plugins/KerneloopsReporter.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/plugins/KerneloopsReporter.cpp b/lib/plugins/KerneloopsReporter.cpp
index 3af8a932..cee1bad7 100644
--- a/lib/plugins/KerneloopsReporter.cpp
+++ b/lib/plugins/KerneloopsReporter.cpp
@@ -101,15 +101,15 @@ std::string CKerneloopsReporter::Report(const map_crash_data_t& pCrashData,
m_sSubmitURL.c_str(),
it->second[CD_CONTENT].c_str()
);
+ if (ret != CURLE_OK)
+ {
+ char* err_str = xasprintf("Kernel oops has not been sent due to %s", curl_easy_strerror(ret));
+ CABRTException e(EXCEP_PLUGIN, err_str);
+ free(err_str);
+ throw e;
+ }
}
- if (ret != CURLE_OK)
- {
- char* err_str = xasprintf("Kernel oops has not been sent due to %s", curl_easy_strerror(ret));
- CABRTException e(EXCEP_PLUGIN, err_str);
- free(err_str);
- throw e;
- }
/* Server replies with:
* 200 thank you for submitting the kernel oops information
* RemoteIP: 34192fd15e34bf60fac6a5f01bba04ddbd3f0558