瀏覽代碼

Bug 1956: Errors while opening a tunnel are not logged

Source commit: e3b798759f3f09a85909f03308a9c3b3dcf123ae
Martin Prikryl 4 年之前
父節點
當前提交
4ca3f2ddc2
共有 1 個文件被更改,包括 3 次插入1 次删除
  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;
   }