Skip to content
Snippets Groups Projects
Commit 5d0f6ec7 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

catch exception by reference.


Signed-off-by: default avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent f0aa5276
No related branches found
No related tags found
No related merge requests found
...@@ -431,7 +431,7 @@ string TSTLogger::post_message(std::map<std::string,std::string> req_params, con ...@@ -431,7 +431,7 @@ string TSTLogger::post_message(std::map<std::string,std::string> req_params, con
client.close_connection(); client.close_connection();
return response; return response;
} }
catch (SocketException exc) { catch (SocketException &exc) {
cerr << this->name_ << ": " << "HTTP error: " << exc.getMessage() << " (" << exc.getReason() << ")\n"; cerr << this->name_ << ": " << "HTTP error: " << exc.getMessage() << " (" << exc.getReason() << ")\n";
} }
return ""; return "";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment