From f8c8925b834b0708a08476f5c5f1a67ae6ef2393 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 6 Jun 2017 08:18:13 +0200 Subject: [PATCH] don't swallow exception --- src/remoteClient/clientContextImpl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/remoteClient/clientContextImpl.cpp b/src/remoteClient/clientContextImpl.cpp index 71ef89e..87ebbaa 100644 --- a/src/remoteClient/clientContextImpl.cpp +++ b/src/remoteClient/clientContextImpl.cpp @@ -4712,10 +4712,9 @@ private: //static_pointer_cast(t)->setFlushStrategy(m_flushStrategy); return t; } - catch (...) + catch (std::exception& e) { - // TODO log - //printf("failed to get transport\n"); + LOG(logLevelError, "getTransport() fails: %s\n", e.what()); return Transport::shared_pointer(); } }