From b192dcec842cf043ae936c446bb252259b415ab5 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Wed, 7 Jun 2017 19:21:39 +0500 Subject: 2017-06-07 --- src/network/Network.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/network/Network.cpp') diff --git a/src/network/Network.cpp b/src/network/Network.cpp index 7757be9..399ce20 100644 --- a/src/network/Network.cpp +++ b/src/network/Network.cpp @@ -9,6 +9,7 @@ Network::Network(std::string address, unsigned short port) : m_address(address), LOG(ERROR) << "Can't connect to remote server"; } else { LOG(ERROR) << "Connection failed with unknown reason"; + throw std::runtime_error("Connection is failed"); throw 13; } } @@ -69,7 +70,7 @@ Packet Network::ReceivePacket() { } if (dataLen < packetLen) { LOG(ERROR) << "Received data is "<