diff options
author | Kamil Dudka <kdudka@redhat.com> | 2010-08-31 17:21:01 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-08-31 17:21:01 +0200 |
commit | c62898fa2f915312499222162713629493f9701b (patch) | |
tree | e79415a1eec4ba6f1b107088cf753faec59f22d4 /lib/plugins/KerneloopsReporter.cpp | |
parent | 92be608302973ebae0ec55ea726567fd9b042b05 (diff) | |
download | abrt-c62898fa2f915312499222162713629493f9701b.tar.gz abrt-c62898fa2f915312499222162713629493f9701b.tar.xz abrt-c62898fa2f915312499222162713629493f9701b.zip |
KerneloopsReporter.cpp: move misplaced block of code
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'lib/plugins/KerneloopsReporter.cpp')
-rw-r--r-- | lib/plugins/KerneloopsReporter.cpp | 14 |
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 |