"tools/git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "84b72278b56c9adca02d0db6fb299a8e2e18df7b"
Commit aa230458 authored by Davis King's avatar Davis King
Browse files

Made the error message from connect() a little more informative.

parent a1daeea4
...@@ -36,7 +36,11 @@ namespace dlib ...@@ -36,7 +36,11 @@ namespace dlib
} }
if(create_connection(con,port,ip)) if(create_connection(con,port,ip))
throw socket_error("unable to connect to '" + host_or_ip + "'"); {
std::ostringstream sout;
sout << "unable to connect to '" << host_or_ip << ":" << port << "'";
throw socket_error(sout.str());
}
return con; return con;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment