Browse Source

Fixed error messages

Paul-Louis Ageneau 3 years ago
parent
commit
93c4d67fc7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/impl/tcptransport.cpp

+ 2 - 2
src/impl/tcptransport.cpp

@@ -155,10 +155,10 @@ void TcpTransport::connect() {
 			auto callback = [this, result, ai, recurse](PollService::Event event) mutable {
 			auto callback = [this, result, ai, recurse](PollService::Event event) mutable {
 				try {
 				try {
 					if (event == PollService::Event::Error)
 					if (event == PollService::Event::Error)
-						throw std::runtime_error("Connection interrupted");
+						throw std::runtime_error("TCP connection failed");
 
 
 					if (event == PollService::Event::Timeout)
 					if (event == PollService::Event::Timeout)
-						throw std::runtime_error("Connection timed out");
+						throw std::runtime_error("TCP connection timed out");
 
 
 					if (event != PollService::Event::Out)
 					if (event != PollService::Event::Out)
 						return;
 						return;