Browse Source

Bug 1956: Errors while opening a tunnel are not logged

(cherry picked from commit 4ca3f2ddc2630b343ddc8be923c1b9c4867bf3a2)

Source commit: ae8939d698844f7f83265dfe059c2726dfd9b088
Martin Prikryl 4 years ago
parent
commit
bbc5bb28a9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      source/core/Terminal.cpp

+ 3 - 1
source/core/Terminal.cpp

@@ -1553,8 +1553,10 @@ void __fastcall TTerminal::OpenTunnel()
 
     FTunnelThread = new TTunnelThread(FTunnel);
   }
-  catch(...)
+  catch (Exception & E)
   {
+    LogEvent(L"Error opening tunnel.");
+    Log->AddException(&E);
     CloseTunnel();
     throw;
   }