diff --git a/tcp_syni.nim b/tcp_syni.nim index 68ba2d2..2a2937f 100644 --- a/tcp_syni.nim +++ b/tcp_syni.nim @@ -302,4 +302,4 @@ proc accept*(puncher: TcpSyniPuncher, srcPort: Port, dstIp: IpAddress, else: raise newException(PunchHoleError, "timeout") except OSError as e: - echo &"accepting connections from {dstIP}:{dstPorts[0].int} failed: ", e.msg + raise newException(PunchHoleError, e.msg)