From c62898fa2f915312499222162713629493f9701b Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 31 Aug 2010 17:21:01 +0200 Subject: KerneloopsReporter.cpp: move misplaced block of code Signed-off-by: Kamil Dudka Signed-off-by: Denys Vlasenko --- lib/plugins/KerneloopsReporter.cpp | 14 +++++++------- 1 file 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 -- cgit