From 5d0f6ec7692822b167b2f9c4ac0f6383de6c54e2 Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Sat, 11 Aug 2018 14:33:06 +0200 Subject: [PATCH] catch exception by reference. Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com> --- loggerplugins/TSTLogger/TSTLogger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loggerplugins/TSTLogger/TSTLogger.cc b/loggerplugins/TSTLogger/TSTLogger.cc index 4de9d0885..bd886e323 100644 --- a/loggerplugins/TSTLogger/TSTLogger.cc +++ b/loggerplugins/TSTLogger/TSTLogger.cc @@ -431,7 +431,7 @@ string TSTLogger::post_message(std::map<std::string,std::string> req_params, con client.close_connection(); return response; } - catch (SocketException exc) { + catch (SocketException &exc) { cerr << this->name_ << ": " << "HTTP error: " << exc.getMessage() << " (" << exc.getReason() << ")\n"; } return ""; -- GitLab